diff options
author | Douglas RAILLARD | 2015-06-12 23:04:55 +0200 |
---|---|---|
committer | Douglas RAILLARD | 2015-06-12 23:04:55 +0200 |
commit | caa7c6000e151e79eca8a956a059d7607faa8983 (patch) | |
tree | 5119c94ad4717cda14e4b768063e4dc733af5faa /PKGBUILD | |
download | aur-genromfs.tar.gz |
Add PKGBUILD and pre-commit git hook to generate .SRCINFO
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d4f808876bc2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Douglas RAILLARD <douglas dot raillard at gmail dot com> +# Contributor: jordz <jordz@archlinux.us> + +pkgname=genromfs +pkgver=0.5.2 +pkgrel=2 +pkgdesc="tool for creating romfs images" +arch=(i686 x86_64) +url="http://romfs.sourceforge.net" +license=('GPL') +depends=(glibc) +source=(http://downloads.sourceforge.net/project/romfs/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz) +md5sums=('2a91463c56f9e042edc330c063a0cf5a') + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + cd "$pkgname-$pkgver" + + # The provided install target does not install man page in correct folder: make PREFIX="$pkgdir" install + mkdir -p "$pkgdir/usr/bin" + install -m 755 genromfs "$pkgdir/usr/bin" + + mkdir -p "$pkgdir/usr/share/man/man8" + gzip -f genromfs.8 + install -m 644 genromfs.8.gz "$pkgdir/usr/share/man/man8" +} |