Permalink
Browse files

pkgfile-git: fixup PKGBUILD for autotools

  • Loading branch information...
1 parent 8d194f1 commit 0683279630d2134381a1f393ca3971e849c851d7 @falconindy committed Aug 6, 2012
Showing with 12 additions and 3 deletions.
  1. +4 −2 pkgfile-git/PKGBUILD
  2. +8 −1 pkgfile-git/pkgfile.install
@@ -1,7 +1,7 @@
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=pkgfile-git
-pkgver=20120709
+pkgver=20120720
pkgrel=1
pkgdesc="a pacman .files metadata explorer"
arch=('i686' 'x86_64')
@@ -34,11 +34,13 @@ build() {
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
+ ./autogen.sh
+ ./configure
make
}
package() {
- make -C "$srcdir/$_gitname-build" PREFIX=/usr DESTDIR="$pkgdir" install
+ make -C "$srcdir/$_gitname-build" DESTDIR="$pkgdir" install
}
# vim: ft=sh syn=sh et
@@ -1,5 +1,12 @@
#!/bin/bash
post_install() {
- printf "==> Run 'pkgfile ---update' to initialize the database\n"
+ printf "==> Run 'pkgfile --update' to initialize the database\n"
+}
+
+post_remove() {
+ # the cache dir might not be removed, notify the user
+ if [ -d var/cache/pkgfile ]; then
+ printf "==> /var/cache/pkgfile has not been removed\n"
+ fi
}

0 comments on commit 0683279

Please sign in to comment.