Skip to content

Commit

Permalink
pkgfile-git: fixup PKGBUILD for autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Aug 6, 2012
1 parent 8d194f1 commit 0683279
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkgfile-git/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Dave Reisner <d@falconindy.com> # Contributor: Dave Reisner <d@falconindy.com>


pkgname=pkgfile-git pkgname=pkgfile-git
pkgver=20120709 pkgver=20120720
pkgrel=1 pkgrel=1
pkgdesc="a pacman .files metadata explorer" pkgdesc="a pacman .files metadata explorer"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
Expand Down Expand Up @@ -34,11 +34,13 @@ build() {
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build" cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build"


./autogen.sh
./configure
make make
} }


package() { 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 # vim: ft=sh syn=sh et
9 changes: 8 additions & 1 deletion pkgfile-git/pkgfile.install
@@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash


post_install() { 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.