initial import
This commit is contained in:
31
perl-json-xs/PKGBUILD
Normal file
31
perl-json-xs/PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=perl-json-xs
|
||||
pkgver=4.0
|
||||
pkgrel=4
|
||||
pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast"
|
||||
url='https://search.cpan.org/dist/JSON-XS/'
|
||||
license=('GPL-1')
|
||||
arch=('i686' 'x86_64')
|
||||
depends=('perl' 'perl-common-sense' 'perl-types-serialiser')
|
||||
makedepends=('perl-canary-stability')
|
||||
options=('!emptydirs')
|
||||
source=(https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz)
|
||||
sha512sums=('83b8163ee0fa18e4f768de2dc16c66bd31f9e969917c852b66d7a8d630432792f6a3b4cbbd9d72b593b3b146c593344612cf3d5e58797f6f27f79160f3e9aea1')
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/JSON-XS-$pkgver
|
||||
PERL_CANARY_STABILITY_NOPROMPT=1 \
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/JSON-XS-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
find "$pkgdir" -name '.packlist' -delete && \
|
||||
find "$pkgdir" -name '*.pod' -delete
|
||||
|
||||
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user