This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
55 lines (48 loc) · 1.49 KB
/
PKGBUILD
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
# Maintainer: Jeroen Ooms
pkgname=tar
pkgver=1.32
pkgrel=9800
pkgdesc="Utility used to store, backup, and transport files"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/tar/tar.html"
license=('GPL3')
groups=('compression')
depends=('libiconv' 'libintl' 'sh')
makedepends=('libiconv-devel' 'gettext-devel' 'autotools')
options=('!emptydirs')
install=tar.install
source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}
1.29-mode-binary.patch
tar-1.31-msys2.patch
rtools-allow-drives.patch)
sha256sums=('d0d3ae07f103323be809bc3eac0dcc386d52c5262499fe05511ac4788af1fdd8'
'SKIP'
'e96dd022ce1d8749c766820ed1465d5f56f76a2c5e7eaeada473e9d652f5a3b1'
'72ebad71a176bd3ab32248c4a1d1ada1bb3c26cf359c8a1cb501a9288b19c479'
'28edea3d1855d9828019ba8980333ab1d5758e373f567d0a5320c31eb0c4beb2')
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/1.29-mode-binary.patch
patch -p1 -i ${srcdir}/tar-1.31-msys2.patch
patch -p1 -i ${srcdir}/rtools-allow-drives.patch
autoreconf -fi
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure \
--build=${CHOST} \
--prefix=/usr \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/tar \
--enable-backup-scripts
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check || true
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}