blob: 9df2d570adae2213fade63c6ae5897c932497446 (
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
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=perl-x11-xcb
_cpanname=X11-XCB
pkgver=0.23
pkgrel=1.0
pkgdesc="Perl bindings for libxcb"
arch=('i686' 'x86_64')
url="http://metacpan.org/release/$_cpanname"
license=('PerlArtistic')
makedepends=('perl-xs-object-magic' 'perl-extutils-depends' 'libpthread-stubs'
'perl-module-install' 'perl-extutils-pkgconfig' 'perl-data-dump'
'perl-xml-simple' 'perl-xml-descent')
depends=('libxau' 'libxdmcp' 'perl-mouse' 'perl-try-tiny'
'libxcb' 'xcb-util' 'xcb-util-wm')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/Z/ZH/ZHMYLOVE/${_cpanname}-${pkgver}.tar.gz")
md5sums=('950a9ac74d36b4d0ec66da36f02e0265')
sha512sums=('b321bf76f6814874801f6b820728a4810cdd9f26a3a24271994390e8ea937c4b63885861461733d88bd41f7376ca79a784d3724e207a73fd579f266a9e1f8cf0')
build() {
cd ${_cpanname}-${pkgver}
perl Makefile.PL INSTALLDIRS=vendor
make || :
make
}
_perl_depends() {
# template start; name=perl-binary-module-dependency; version=1;
if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
_perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
_perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
fi
# template end;
}
package() {
cd ${_cpanname}-${pkgver}
make DESTDIR="$pkgdir" install
find $pkgdir -name '.packlist' -delete
find $pkgdir -name '*.pod' -delete
_perl_depends
}
|