PKGBUILD-perl.proto 1.38 KB
Newer Older
Allan McRae's avatar
Allan McRae committed
1
2
3
4
5
# 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'.

6
# See https://wiki.archlinux.org/index.php/Perl_Package_Guidelines for more
Allan McRae's avatar
Allan McRae committed
7
# information on Perl packaging.
8
9
10
11
#
# _modnamespace is for the module's namespace. For example, use "Text" if the
# module name is Text::CSV::Unicode.
#
Allan McRae's avatar
Allan McRae committed
12

13
# Maintainer: Your Name <youremail@domain.com>
matt mooney's avatar
matt mooney committed
14
_perlmod=MODNAME
15
_modnamespace=MODULE-NAMESPACE
matt mooney's avatar
matt mooney committed
16
pkgname=perl-$_perlmod
Allan McRae's avatar
Allan McRae committed
17
18
19
20
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
21
url="http://search.cpan.org/dist/$_perlmod"
Allan McRae's avatar
Allan McRae committed
22
license=('GPL' 'PerlArtistic')
matt mooney's avatar
matt mooney committed
23
groups=()
Allan McRae's avatar
Allan McRae committed
24
25
26
27
28
29
depends=('perl>=5.10.0')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
30
options=('!emptydirs')
Allan McRae's avatar
Allan McRae committed
31
install=
32
source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz")
Allan McRae's avatar
Allan McRae committed
33
34
35
md5sums=()

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

matt mooney's avatar
matt mooney committed
38
  # Install module in vendor directories.
39
40
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
matt mooney's avatar
matt mooney committed
41

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

package() {
matt mooney's avatar
matt mooney committed
48
  cd "$srcdir/$_perlmod-$pkgver"
49
50
  make install DESTDIR="$pkgdir/"

matt mooney's avatar
matt mooney committed
51
  ## For packages with Build.PL, do this instead:
Allan McRae's avatar
Allan McRae committed
52
53
54
55
  # perl Build install
}

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