initial import
This commit is contained in:
47
perl-text-diff/PKGBUILD
Normal file
47
perl-text-diff/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=perl-text-diff
|
||||
_realpkgname=Text-Diff
|
||||
pkgver=1.45
|
||||
_debver=$pkgver
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc="Perform diffs on files and record sets "
|
||||
arch=('any')
|
||||
url='https://search.cpan.org/dist/Text-Diff'
|
||||
license=('GPL-1')
|
||||
depends=('perl-algorithm-diff')
|
||||
makedepends=('quilt')
|
||||
options=('!emptydirs')
|
||||
source=("https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/${_realpkgname}-${pkgver}.tar.gz"
|
||||
"https://deb.debian.org/debian/pool/main/libt/libtext-diff-perl/libtext-diff-perl_${_debver}-${_debrel}.debian.tar.xz")
|
||||
sha512sums=('569370707bf30d60d12df6389594bcdba050805005916ac3a485c2226e528891b0af9ecfcc13d20e4f377d2c36a7ff67e51de5ca409c647aa8a36b7a87eab367'
|
||||
'4a309ee643038e715f6afba460490a8d656379773b03c89b7bc70bd2a1896738de5b4a09f9a73e29791c5ec22363c317187a7f45db409bfd865e048e7d737889')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"/${_realpkgname}-${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 "$srcdir"/${_realpkgname}-${pkgver}
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/${_realpkgname}-${pkgver}
|
||||
make install DESTDIR="$pkgdir"
|
||||
find "$pkgdir" -name '.packlist' -delete
|
||||
find "$pkgdir" -name '*.pod' -delete
|
||||
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user