mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
added extra/pkgfile
This commit is contained in:
parent
fc3af7e630
commit
3cad2caa09
2 changed files with 62 additions and 0 deletions
44
extra/pkgfile/PKGBUILD
Normal file
44
extra/pkgfile/PKGBUILD
Normal file
|
@ -0,0 +1,44 @@
|
|||
# $Id$
|
||||
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - upstream patch, remove package when bumped
|
||||
|
||||
pkgname=pkgfile
|
||||
pkgver=13
|
||||
pkgrel=1.1
|
||||
pkgdesc="a pacman .files metadata explorer"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://github.com/falconindy/pkgfile"
|
||||
license=('MIT')
|
||||
depends=('libarchive' 'curl' 'pcre' 'pacman')
|
||||
source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
|
||||
'https://github.com/falconindy/pkgfile/commit/e66d942214143b2c105af3df7c7a7b961b80d832.patch')
|
||||
install=pkgfile.install
|
||||
md5sums=('7b4e20bf3ec6604cd439d5acd6ca871d'
|
||||
'SKIP'
|
||||
'7cfd0ab718d6cdaa674f57c89ca102d0')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname-$pkgver"
|
||||
patch -p1 -i ../e66d942214143b2c105af3df7c7a7b961b80d832.patch
|
||||
}
|
||||
|
||||
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
|
18
extra/pkgfile/pkgfile.install
Normal file
18
extra/pkgfile/pkgfile.install
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
post_install() {
|
||||
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
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
if [ "$(vercmp 5 "$2")" -eq 1 ]; then
|
||||
printf "==> DB format has changed. Please run pkgfile -uu\n"
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue