core/tar/PKGBUILD

45 lines
1001 B
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=tar
2016-05-26 16:28:30 +08:00
pkgver=1.29
2017-12-11 01:47:08 +08:00
pkgrel=2
2014-09-27 12:12:32 +08:00
pkgdesc='Utility used to store, backup, and transport files'
2016-05-26 16:28:30 +08:00
arch=('x86_64')
2010-04-04 22:20:41 +08:00
url="http://www.gnu.org/software/tar/tar.html"
2010-03-13 23:25:19 +08:00
license=('GPL3')
groups=('base')
2014-09-27 12:12:32 +08:00
depends=('glibc' 'acl' 'attr')
2010-04-04 22:20:41 +08:00
options=('!emptydirs')
2010-03-13 23:25:19 +08:00
install=tar.install
2016-05-26 16:28:30 +08:00
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
2014-09-27 12:12:32 +08:00
source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
2016-05-26 16:28:30 +08:00
md5sums=('a1802fec550baaeecff6c381629653ef'
2014-09-27 12:12:32 +08:00
'SKIP')
2010-03-13 23:25:19 +08:00
2017-12-11 01:47:08 +08:00
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
msg2 "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
:
}
2010-03-13 23:25:19 +08:00
build() {
2014-09-27 12:12:32 +08:00
cd $pkgname-$pkgver
./configure --prefix=/usr --libexecdir=/usr/lib/tar
make
}
2014-09-27 12:12:32 +08:00
check() {
cd $pkgname-$pkgver
make check
2010-04-04 22:20:41 +08:00
}
2014-09-27 12:12:32 +08:00
2010-04-04 22:20:41 +08:00
package() {
2014-09-27 12:12:32 +08:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
2010-03-13 23:25:19 +08:00
}