summaryrefslogtreecommitdiff
path: root/community/libtar/PKGBUILD
blob: 62f5394b972fa6e08b61d5a96eb53d5a95e3c289 (plain)
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
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer : Biru Ionut <ionut@archlinux.ro>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>

pkgname=libtar
pkgver=1.2.11
pkgrel=2
pkgdesc="C library for manipulating POSIX tar files"
arch=('i686' 'x86_64')
url="http://www.feep.net/libtar/"
license=('BSD')
depends=('zlib')
source=(ftp://ftp.feep.net/pub/software/$pkgname/$pkgname-$pkgver.tar.gz \
        libtar-$pkgver.patch)
md5sums=('604238e8734ce6e25347a58c4f1a1d7e' 'baef7da841c186e1830566296859c35b')
sha1sums=('9611f23024b0e89aad1cfea301122186b3c160f8' '100c37378faea118c6664cd8958caa91f34633d0')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  export CFLAGS+=" -fPIC"
  patch -Np1 -i ../libtar-$pkgver.patch
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
  make DESTDIR="$pkgdir" install
  install -D -m644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
}