blob: 92e34f6c4c820ef779257c84e5943759de44eeb8 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Max Harmathy <max.harmathy@web.de>
# Contributor: Johannes Dewender arch at JonnyJD dot net
# Contributor: Patrick McCarty <pnorcks at gmail dot com>
# Contributor: Jimmy Tang <jtang@tchpc.tcd.ie>
pkgname=pristine-tar
pkgver=1.50
pkgrel=1
pkgdesc="Tool to regenerate a pristine upstream tarball using only a small binary delta file and a copy of the source which can be a revision control checkout."
arch=('i686' 'x86_64')
url="https://salsa.debian.org/debian/pristine-tar"
license=('GPL')
depends=(
pbzip2
perl
pixz
xdelta
xdelta3
xz
)
conflicts=('pristine-tar-git')
checkdepends=('shunit2' 'diffoscope')
source=(
http://ftp.debian.org/debian/pool/main/p/${pkgname}/${pkgname}_${pkgver}.tar.xz
remove-sys-cpuaffinity-dep.patch
)
sha256sums=('9a9790edddd2d5588da87cbc2dfd223dcd0967974c5b0bddf734d49ba85d7f6a'
'0c7a2f1c941c7f3b9acb7219822ffda62df8beea5059f8ccc403a43d6cb83b52')
build() {
cd "$srcdir/work"
patch -p1 < "$startdir/remove-sys-cpuaffinity-dep.patch"
export PATH=/usr/bin/core_perl:$PATH
perl Makefile.PL
make
}
check() {
cd "$srcdir/work"
make test
}
package() {
cd "$srcdir/work"
make install DESTDIR=$pkgdir PREFIX=/usr INSTALLSITESCRIPT=/usr/bin
install -d $pkgdir/usr/share/doc/pristine-tar
install -D GPL TODO delta-format.txt $pkgdir/usr/share/doc/pristine-tar
install -D -t $pkgdir/usr/share/bash-completion/completions bash_completion/pristine-tar
}
# vim:set ts=2 sw=2 et:
|