# $Id: PKGBUILD 80220 2012-11-17 22:28:33Z dreisner $ # Maintainer: Dave Reisner pkgname=pkgfile pkgver=7 pkgrel=1 pkgdesc="a pacman .files metadata explorer" arch=('i686' 'x86_64') url="http://github.com/falconindy/pkgfile" license=('MIT') depends=('libarchive' 'curl' 'pcre' 'pacman') conflicts=('pkgtools<24-2') makedepends=('perl') source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}) install=pkgfile.install md5sums=('f1dc0052b1c21597ea2fa0f0ce05608c' '28599a9b6e56860a9cba1c95ec797551') build() { cd "$pkgname-$pkgver" ./configure make # generate a license file sed '/\*\//q' src/pkgfile.c >LICENSE } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim: ft=sh syn=sh