initial import
This commit is contained in:
52
warzone2100-legacy/PKGBUILD
Normal file
52
warzone2100-legacy/PKGBUILD
Normal file
@@ -0,0 +1,52 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
_realpkgname=warzone2100
|
||||
pkgname=$_realpkgname-legacy
|
||||
pkgver=2.3.9
|
||||
pkgrel=4
|
||||
pkgdesc="3D realtime strategy game on a future Earth (legacy-version)"
|
||||
url='https://sourceforge.net/projects/warzone2100'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-2' 'Original-BSD' 'Modified-BSD' 'Public-Domain' 'CC-BY-SA-3.0')
|
||||
depends=('sdl' 'openal' 'libpng' 'libvorbis' 'libtheora' 'physfs' 'quesoglc' 'popt' 'ttf-dejavu')
|
||||
makedepends=('gawk' 'bison' 'flex' 'zip' 'unzip' 'asciidoc')
|
||||
groups=('games')
|
||||
source=("https://sourceforge.net/projects/warzone2100/files/archives/unsupported/Warzone2100-2.3/${pkgver}/${_realpkgname}-${pkgver}.tar.gz"
|
||||
"https://sourceforge.net/projects/warzone2100/files/warzone2100/Videos/low-quality-en/sequences.wz"
|
||||
"fix-build.patch")
|
||||
sha512sums=('3af34969e701e089886a228f7e2c33b61d763adcfebe6f8f0ac3cdb24ed133173dbf051c544e12e74f278b7193f4cbc79bb1df2d1a974f8d03575557695a8662'
|
||||
'd7fab931af53dbdf33d560544984fcb332318c1e122525550c2d5f01ec5726e28d98d8f2905c09959e59fa1fdcbf0986f0fc18f80d016eaaf44938dfef6052d2'
|
||||
'4254c9b9826e1ecffcbbc858120179f2c495d4be8619af2094adfced775294d6cf677266e914571993cf8da6a4728718685ebeaaaf3295c41a281a74518720a9')
|
||||
|
||||
build() {
|
||||
cd ${_realpkgname}-${pkgver}
|
||||
|
||||
./configure LIBS="-lvorbis" \
|
||||
--prefix=/usr \
|
||||
--bindir=/usr/games \
|
||||
--datadir=/usr/share/games \
|
||||
--with-distributor="Hyperbola"
|
||||
|
||||
# additional fixes
|
||||
patch -Np1 -i ${srcdir}/fix-build.patch
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${_realpkgname}-${pkgver}
|
||||
|
||||
# package-preparation, being FHS-compliant
|
||||
make DESTDIR=${pkgdir} PREFIX="/usr" BINDIR="/usr/games" DATADIR="/usr/share/games" install
|
||||
|
||||
# correcting wrong folder-locations
|
||||
mv "${pkgdir}/usr/share/games/applications" "${pkgdir}/usr/share/"
|
||||
mv "${pkgdir}/usr/share/games/icons" "${pkgdir}/usr/share/"
|
||||
|
||||
# additional data
|
||||
install -Dm644 "${srcdir}/sequences.wz" -t "${pkgdir}/usr/share/games/${_realpkgname}"
|
||||
|
||||
# license
|
||||
install -Dm644 "${srcdir}/${_realpkgname}-${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -Dm644 "${srcdir}/${_realpkgname}-${pkgver}/COPYING.NONGPL" -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
}
|
||||
Reference in New Issue
Block a user