diff options
author | Slashbunny | 2013-06-22 22:19:27 -0400 |
---|---|---|
committer | Slashbunny | 2013-06-22 22:19:27 -0400 |
commit | b4dec34fe3af8a73fd3ee04367c2ee3afb78dc5f (patch) | |
tree | ba37b27b4756c546c0a80a2455be89b5b213fcc7 | |
parent | df333dc49a523cba3f51c9fd7d9a87baa1bd1aaa (diff) | |
download | aur-b4dec34fe3af8a73fd3ee04367c2ee3afb78dc5f.tar.gz |
Modernize PKGBUILD, fix man page location
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 22 insertions, 12 deletions
@@ -1,8 +1,10 @@ pkgbase = quake-par pkgdesc = Quake PAK archiving utility. pkgver = 0.03.01 - pkgrel = 1 + pkgrel = 2 url = ftp://ibiblio.org/pub/linux/games/quake/ + arch = i686 + arch = x86_64 license = GPL depends = glibc source = ftp://ibiblio.org/pub/linux/games/quake/par-0.03.01.tar.gz @@ -2,10 +2,11 @@ pkgname=quake-par pkgver=0.03.01 -pkgrel=1 +pkgrel=2 pkgdesc="Quake PAK archiving utility." url="ftp://ibiblio.org/pub/linux/games/quake/" -license="GPL" +license=('GPL') +arch=('i686' 'x86_64') depends=('glibc') makedepends=() conflicts=() @@ -16,15 +17,22 @@ source=("ftp://ibiblio.org/pub/linux/games/quake/par-$pkgver.tar.gz") md5sums=('39a73b5b95b04067dfc9acb8ef6bc9ff') build() { - cd $startdir/src/par-$pkgver - - # Modify Destination Directory in Makefile - /bin/sed -i "s:/usr/local:$startdir/pkg/usr:" Makefile.Linux + cd $srcdir/par-$pkgver + ./configure + make +} + +package() { + cd $srcdir/par-$pkgver + + # Modify Prefix Directory in Makefile + /bin/sed -i "s:/usr/local:$pkgdir/usr:" Makefile.Linux + + # Modify man page Directory in Makefile + /bin/sed -i "s:\${prefix}/man:$pkgdir/usr/share/man:" Makefile.Linux - # Create Dirs - install -d $startdir/pkg/usr/{bin,man/man1} + # Create Destination Directories + install -d $pkgdir/usr/{bin,share/man/man1} - ./configure - make || return 1 - make install + make install } |