initial import
This commit is contained in:
46
perl-archive-zip/PKGBUILD
Normal file
46
perl-archive-zip/PKGBUILD
Normal file
@@ -0,0 +1,46 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=perl-archive-zip
|
||||
pkgver=1.68
|
||||
_debver=1.68
|
||||
_debrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Provide a perl interface to ZIP archive files'
|
||||
arch=('any')
|
||||
license=('GPL-1')
|
||||
url="https://search.cpan.org/dist/Archive-Zip/"
|
||||
depends=('perl')
|
||||
options=('!emptydirs')
|
||||
source=(https://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-${pkgver}.tar.gz
|
||||
https://deb.debian.org/debian/pool/main/liba/libarchive-zip-perl/libarchive-zip-perl_$_debver-$_debrel.debian.tar.xz
|
||||
"LICENSE::https://metadata.ftp-master.debian.org/changelogs//main/liba/libarchive-zip-perl/libarchive-zip-perl_1.68-1_copyright")
|
||||
sha512sums=('40c3ba26b1c27a8b15b919934e7fcd531f208bec73de3454e123ac1fb771831e287b8fade421be40e243498beb6dad9b6133ef07d2e5d407afbd1f3d6a30b916'
|
||||
'9d9b739878b0c1f38c61aed85ad0349824ef23ea43dfa40e4835857e788b53696cbcd6f5906b0991f8bddf1a20f3c25fff87c0c18d20c29c7b98ac78b648b03d'
|
||||
'c308a43dc7c647e0e035efda4a16cad9223042289b328281af701a990105516ea4821307e8b8728c1540e6b05fb06413eb485b16ec76bc4793c4a5eecff9c728')
|
||||
|
||||
prepare() {
|
||||
cd Archive-Zip-${pkgver}
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd Archive-Zip-${pkgver}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd Archive-Zip-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user