blob: a91deeaa824bad5d3a117163296136b6e5f03ee7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: suthernfriend <public@janpeterkoenig.com>
# Contributor: ajs124 < aur AT ajs124 DOT de >
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
pkgname=perl-ipc-sharelite
_cpanname="IPC-ShareLite"
pkgver=0.17
pkgrel=6
pkgdesc="Lightweight interface to shared memory"
arch=('x86_64' 'aarch64' 'armv7h')
url="http://search.cpan.org/~andya/$_cpanname-$pkgver/"
license=('GPL' 'PerlArtistic')
depends=('glibc')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/$_cpanname-$pkgver.tar.gz")
sha512sums=('f796f6766df11205755de4672ff8a586690545ccaa2f91c3fc65f106f3b61e1cbd86ee3e97dadf787809e3be32f503670cb67dafc9b18eee30d59d8be03b5ee9')
# Function to change to the working directory and set
# environment variables to override undesired options.
prepareEnvironment() {
cd "$srcdir/$_cpanname-$pkgver"
export \
PERL_MM_USE_DEFAULT=1 \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
}
build() {
prepareEnvironment
perl Makefile.PL
make
}
check() {
prepareEnvironment
cd "$srcdir/$_cpanname-$pkgver"
make test
}
package() {
prepareEnvironment
cd "$srcdir/$_cpanname-$pkgver"
make install
# Remove "perllocal.pod" and ".packlist".
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
find "$pkgdir" -type f -iname \*.so -exec strip {} \;
}
|