[arch-commits] Commit in libtar/trunk (PKGBUILD libtar-1.2.20-free.patch)
Christian Hesse
eworm at archlinux.org
Tue Jun 6 19:11:54 UTC 2017
Date: Tuesday, June 6, 2017 @ 19:11:53
Author: eworm
Revision: 298108
upgpkg: libtar 1.2.20-3
What state was the source tarball? Whatever... It was outdated, missing some
important fixes. As upstream is pretty inactive we catch the latest snapshot
from a source that collects maintenance patches.
Modified:
libtar/trunk/PKGBUILD
Deleted:
libtar/trunk/libtar-1.2.20-free.patch
--------------------------+
PKGBUILD | 39 +++++++++++++++++----------------------
libtar-1.2.20-free.patch | 22 ----------------------
2 files changed, 17 insertions(+), 44 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-06 18:54:26 UTC (rev 298107)
+++ PKGBUILD 2017-06-06 19:11:53 UTC (rev 298108)
@@ -1,5 +1,6 @@
# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
# Contributor: Biru Ionut <ionut at archlinux.ro>
# Contributor: Eric Belanger <eric at archlinux.org>
# Contributor: Aurelien Foret <orelien at chez.com>
@@ -6,38 +7,32 @@
pkgname=libtar
pkgver=1.2.20
-pkgrel=2
-pkgdesc="C library for manipulating POSIX tar files"
+pkgrel=3
+_git='9c2e044833c5e908f5be0a77991b08849021793e'
+pkgdesc='C library for manipulating POSIX tar files'
arch=('i686' 'x86_64')
-url="http://repo.or.cz/w/libtar.git/"
+url='http://repo.or.cz/w/libtar.git/'
license=('BSD')
depends=('zlib')
-source=("http://pkgbuild.com/~giovanni/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('c8507795b3d461ed10566a61fb4cad9b')
+source=("libtar-${_git}.tar.gz::https://github.com/tklauser/libtar/archive/${_git}.tar.gz")
+sha256sums=('21d86460dd128f56cfa391e4bc82e91f98e84c2948a854e33daed5c58d4e9cb6')
-prepare() {
- cd "${srcdir}/${pkgname}"
-
- sed -i \
- -e '/INSTALL_PROGRAM/s:-s::' {doc,lib{,tar}}/Makefile.in
-}
-
build() {
- cd "${srcdir}/${pkgname}"
- export CFLAGS+=" -fPIC"
+ cd "${srcdir}/${pkgname}-${_git}"
autoreconf -fi
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --disable-static \
- --disable-encap \
- --disable-epkg-install
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-static \
+ --disable-encap \
+ --disable-epkg-install
make
}
package() {
- cd "${srcdir}/${pkgname}"
+ cd "${srcdir}/${pkgname}-${_git}"
make DESTDIR="${pkgdir}" install
- install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m0644 COPYRIGHT "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
Deleted: libtar-1.2.20-free.patch
===================================================================
--- libtar-1.2.20-free.patch 2017-06-06 18:54:26 UTC (rev 298107)
+++ libtar-1.2.20-free.patch 2017-06-06 19:11:53 UTC (rev 298108)
@@ -1,22 +0,0 @@
-stdlib.h is required for free()
-
---- lib/output.c
-+++ lib/output.c
-@@ -20,6 +20,7 @@
- #include <sys/param.h>
-
- #ifdef STDC_HEADERS
-+# include <stdlib.h>
- # include <string.h>
- #endif
-
---- lib/wrapper.c
-+++ lib/wrapper.c
-@@ -18,6 +18,7 @@
- #include <errno.h>
-
- #ifdef STDC_HEADERS
-+# include <stdlib.h>
- # include <string.h>
- #endif
-
More information about the arch-commits
mailing list