Basic PKGBUILD modernization fixes

This commit is contained in:
Slashbunny 2012-11-21 18:02:48 -05:00
parent 9360a2a802
commit c678303471
2 changed files with 33 additions and 29 deletions

View file

@ -4,6 +4,7 @@ pkgbase = fuhquake
pkgrel = 4 pkgrel = 4
url = http://www.fuhquake.net/ url = http://www.fuhquake.net/
install = fuhquake.install install = fuhquake.install
arch = i686
license = GPL license = GPL
makedepends = unzip makedepends = unzip
depends = libgl depends = libgl
@ -14,7 +15,7 @@ pkgbase = fuhquake
source = fuhquake.ico source = fuhquake.ico
source = http://www.slashbunny.com/quake/fuhquake-linux-v0.31.zip source = http://www.slashbunny.com/quake/fuhquake-linux-v0.31.zip
md5sums = c471e673a64882e3653fd953b1a3da1f md5sums = c471e673a64882e3653fd953b1a3da1f
md5sums = 8ea170b09fe50223bb66bf93a3f160b0 md5sums = f66f7cccd41f64955e3993c32e80191f
md5sums = e64a0918e48595f4a8fb47d0e39b8c84 md5sums = e64a0918e48595f4a8fb47d0e39b8c84
md5sums = 6a0f7982f82886210448490be5762ab0 md5sums = 6a0f7982f82886210448490be5762ab0
md5sums = d4476cc49db638e5304ddd6cd744b62a md5sums = d4476cc49db638e5304ddd6cd744b62a

View file

@ -5,20 +5,23 @@ pkgver=0.31
pkgrel=4 pkgrel=4
pkgdesc="A QuakeWorld Client for Win32/Linux. You need the retail pak files to play." pkgdesc="A QuakeWorld Client for Win32/Linux. You need the retail pak files to play."
url="http://www.fuhquake.net/" url="http://www.fuhquake.net/"
license="GPL" license=('GPL')
depends=('libgl') depends=('libgl')
arch=('i686')
makedepends=('unzip') makedepends=('unzip')
conflicts=('ezquake') conflicts=('ezquake')
provides=() provides=()
install=fuhquake.install install=fuhquake.install
source=('fuhquake.launcher' 'fuhquake.install' 'fuhquake.desktop' 'fuhquake.ico' \ source=('fuhquake.launcher' 'fuhquake.install' 'fuhquake.desktop' 'fuhquake.ico' \
"http://www.slashbunny.com/quake/$pkgname-linux-v$pkgver.zip") "http://www.slashbunny.com/quake/$pkgname-linux-v$pkgver.zip")
md5sums=('c471e673a64882e3653fd953b1a3da1f' '8ea170b09fe50223bb66bf93a3f160b0'\ md5sums=('c471e673a64882e3653fd953b1a3da1f'
'e64a0918e48595f4a8fb47d0e39b8c84' '6a0f7982f82886210448490be5762ab0'\ 'f66f7cccd41f64955e3993c32e80191f'
'e64a0918e48595f4a8fb47d0e39b8c84'
'6a0f7982f82886210448490be5762ab0'
'd4476cc49db638e5304ddd6cd744b62a') 'd4476cc49db638e5304ddd6cd744b62a')
build() { build() {
cd $startdir/src cd $srcdir
# Unpack fuhQuake # Unpack fuhQuake
unzip $pkgname-linux-v$pkgver.zip -d quake/ unzip $pkgname-linux-v$pkgver.zip -d quake/
@ -29,24 +32,24 @@ build() {
chmod +x quake/fuhquake.x11 chmod +x quake/fuhquake.x11
# Move data to package directory # Move data to package directory
install -d $startdir/pkg/opt/ install -d $pkgdir/opt/
mv quake/ $startdir/pkg/opt/ mv quake/ $pkgdir/opt/
# Make id1 Directory for pak0.pak and pak1.pak files # Make id1 Directory for pak0.pak and pak1.pak files
install -d $startdir/pkg/opt/quake/id1/ install -d $pkgdir/opt/quake/id1/
# Install Launcher # Install Launcher
install -D -m755 $startdir/src/fuhquake.launcher \ install -D -m755 $srcdir/fuhquake.launcher \
$startdir/pkg/usr/bin/fuhquake $pkgdir/usr/bin/fuhquake
# Install Desktop # Install Desktop
install -D -m644 $startdir/src/fuhquake.desktop \ install -D -m644 $srcdir/fuhquake.desktop \
$startdir/pkg/usr/share/applications/fuhquake.desktop $pkgdir/usr/share/applications/fuhquake.desktop
# Install Icon # Install Icon
install -D -m644 $startdir/src/fuhquake.ico \ install -D -m644 $srcdir/fuhquake.ico \
$startdir/pkg/usr/share/pixmaps/fuhquake.ico $pkgdir/usr/share/pixmaps/fuhquake.ico
# Make Configs directory with permissions root:games so users can save configs # Make Configs directory with permissions root:games so users can save configs
install -d -m 775 -o root -g games $startdir/pkg/opt/quake/fuhquake/configs/ install -d -m 775 -o root -g games $pkgdir/opt/quake/fuhquake/configs/
} }