summaryrefslogtreecommitdiff
path: root/extra/pkgfile/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pkgfile/PKGBUILD')
-rw-r--r--extra/pkgfile/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/pkgfile/PKGBUILD b/extra/pkgfile/PKGBUILD
new file mode 100644
index 000000000..7f9907165
--- /dev/null
+++ b/extra/pkgfile/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 176818 2013-02-01 01:25:21Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+
+pkgname=pkgfile
+pkgver=8
+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')
+source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
+install=pkgfile.install
+md5sums=('772d02872ddf112c5e24d6ad40e5623d'
+ '712c546c0291975e646a1d2170034e10')
+
+options=(!strip)
+
+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