# Maintainer: Carlo Landmeter pkgname=tar pkgver=1.31 pkgrel=0 pkgdesc="Utility used to store, backup, and transport files" url="https://www.gnu.org" arch="all" license="GPL" depends="" install="" makedepends="" subpackages="$pkgname-doc" source="https://ftp.gnu.org/gnu/tar/$pkgname-$pkgver.tar.xz ignore-apk-tools-checksums.patch" # secfixes: # 1.29-r1: # - CVE-2016-6321 # 1.31-r0: # - CVE-2018-20482 builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" gl_cv_func_gettimeofday_clobber=no \ gl_cv_func_tzset_clobber=no \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } # some checks are failing in 1.31 #check() { # cd "$builddir" # make check #} package() { cd "$builddir" make DESTDIR="$pkgdir/" install rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true mkdir "$pkgdir"/bin mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/ ln -s /bin/tar "$pkgdir"/usr/bin/tar } sha512sums="2185fbbe53d4fe3eb688ebc8c2fa800db2599a282c07007358d0a011394aafcf27a80600d044bb4fc299a172d3d95f953106be651db33eb6e5555bd24cad02aa tar-1.31.tar.xz 9cde0f1509328bc5fe2cb46642b53c7681c548cf28a2fb83eda7e9374c9c0ad27a0cd55b9c0cc93951def58dafa55ee71cace5493ddcb7966ee94dc5f1099739 ignore-apk-tools-checksums.patch"