mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:34:37 +08:00
45 lines
1001 B
Bash
45 lines
1001 B
Bash
pkgname=tar
|
|
pkgver=1.29
|
|
pkgrel=2
|
|
pkgdesc='Utility used to store, backup, and transport files'
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/tar/tar.html"
|
|
license=('GPL3')
|
|
groups=('base')
|
|
depends=('glibc' 'acl' 'attr')
|
|
options=('!emptydirs')
|
|
install=tar.install
|
|
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
|
|
source=("ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
|
|
md5sums=('a1802fec550baaeecff6c381629653ef'
|
|
'SKIP')
|
|
|
|
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
|
|
:
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --libexecdir=/usr/lib/tar
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|