PKGBUILD-perl.proto 1.19 KB
Newer Older
Allan McRae's avatar
Allan McRae committed
1
2
3
4
5
6
7
8
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/Perl_Package_Guidelines for more
# information on Perl packaging.

9
# Maintainer: Your Name <youremail@domain.com>
matt mooney's avatar
matt mooney committed
10
11
12
_author=AUTHOR_NAME
_perlmod=MODNAME
pkgname=perl-$_perlmod
Allan McRae's avatar
Allan McRae committed
13
14
15
16
17
18
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url=""
license=('GPL' 'PerlArtistic')
matt mooney's avatar
matt mooney committed
19
groups=()
Allan McRae's avatar
Allan McRae committed
20
21
22
23
24
25
26
27
28
29
30
31
depends=('perl>=5.10.0')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=(http://search.cpan.org/CPAN/authors/id/***/***-$pkgver.tar.gz)
md5sums=()

build() {
matt mooney's avatar
matt mooney committed
32
  cd "$srcdir/$_perlmod-$pkgver"
Allan McRae's avatar
Allan McRae committed
33

matt mooney's avatar
matt mooney committed
34
  # Install module in vendor directories.
35
36
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
matt mooney's avatar
matt mooney committed
37

matt mooney's avatar
matt mooney committed
38
  ## For packages with Build.PL, do this instead:
Allan McRae's avatar
Allan McRae committed
39
40
  # perl Build.PL installdirs=vendor destdir="$pkgdir/"
  # perl Build
41
42
43
}

package() {
matt mooney's avatar
matt mooney committed
44
  cd "$srcdir/$_perlmod-$pkgver"
45
46
  make install DESTDIR="$pkgdir/"

matt mooney's avatar
matt mooney committed
47
  ## For packages with Build.PL, do this instead:
Allan McRae's avatar
Allan McRae committed
48
49
50
51
  # perl Build install
}

# vim:set ts=2 sw=2 et: