summaryrefslogblamecommitdiff
path: root/user/perl-x11-xcb/APKBUILD
blob: 9dc405ab2b089db34e9ceb26bd9bd460be629311 (plain) (tree)
1
2
3
4
5
6
7
8
                                       
                                                          
                    



                               
           



                                       
                                                    
                                       
                                                           

                                                             
                                                 
                                                         
                                     
                          

                                                                                        

         




                                                                 



                 



                                                                           
                                                                                                                                                                  
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-x11-xcb
_pkgreal=X11-XCB
_author=MSTPLBG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.19
pkgrel=0
pkgdesc="Perl bindings for libxcb"
url="https://metacpan.org/pod/X11::XCB"
arch="all"
options="!check"  # Tests require a running X server
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-extutils-pkgconfig perl-extutils-depends
	perl-xs-object-magic perl-data-dump perl-xml-simple
	perl-xml-descent perl-mouse perl-mousex-nativetraits"
checkdepends="perl-test-deep perl-test-exception"
makedepends="perl-dev perl-xs-object-magic-dev libxcb-dev
	xcb-util-dev xcb-util-wm-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make -j1
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="abd6369b00b9ebd4a333cd52b06b2f137a8b8c13a715a0ab485cf0f80acce601b8b22dfff394514ad8b21d253b5f72920aeee6b9bcf4b0d446b772d4ef60ce71  X11-XCB-0.19.tar.gz"