Unvanquished added.

parent 2556d366
pkgname=libwebp
pkgver=0.2.0
pkgrel=1
pkgdesc="WebP library and conversion tools"
arch=('x86_64' 'i686')
url="http://code.google.com/intl/en/speed/webp/"
license=('BSD')
depends=('libpng' 'libjpeg')
options=('!libtool')
source=("http://webp.googlecode.com/files/$pkgname-$pkgver.tar.gz")
sha256sums=('aa7d5e162826362c79d7c36d41484042ab7460dc08dc33d4ea6823a0c77d4bfb')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
\ No newline at end of file
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
pkgname=unvanquished-data
_pkgname=unvanquished
pkgver=0.9.0
pkgrel=1
pkgdesc="A team-based fps/rts hybrid game which pits aliens against humans (data files)"
arch=('any')
url="http://www.unvanquished.net"
license=('CCPL-by-sa')
options=('emptydirs')
source=("http://downloads.sourceforge.net/project/unvanquished/Assets/pak8.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak7.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak6.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak5.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak4.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak3.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak2.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak1.pk3"
"http://downloads.sourceforge.net/project/unvanquished/Assets/pak0.pk3")
md5sums=('6a03b6033ef6260c02de51c22fcc5c6b'
'b2f317bac918e2f84fbab6415158fccf'
'6ac698c1680bbac4c40876e0b1849d82'
'eebc9c8a485c00539717d4e5ee29b60d'
'a9c16f792133d6f997ea96fe0763c7e6'
'522bdb41e26b31ba00a7156df65b4b51'
'25551e1a43963113bba1ae8fa5cdca89'
'14aa78e706ee2f28861650ecc0b716a7'
'cae4f88956923ed116612052fa62b717')
noextract=("pak8.pk3"
"pak7.pk3"
"pak6.pk3"
"pak5.pk3"
"pak4.pk3"
"pak3.pk3"
"pak2.pk3"
"pak1.pk3"
"pak0.pk3")
package() {
install -d $pkgdir/usr/share/$_pkgname/main
for file in pak{0..8}.pk3; do
cp $srcdir/$file $pkgdir/usr/share/$_pkgname/main/$file
done;
}
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
# Contributor: Viech
# Contributor: Martin F. Schumann <mfs@mfs.name>
pkgname=unvanquished
_pkgname=Unvanquished
pkgver=0.9.0
pkgrel=1
pkgdesc="A team-based fps/rts hybrid game which pits aliens against humans"
arch=('x86_64' 'i686')
url="http://www.unvanquished.net"
license=('GPL3')
depends=('curl' 'freetype2' 'glew' 'gmp' 'libjpeg-turbo' 'ncurses' 'libogg' 'libpng' 'sdl' 'libvorbis' 'zlib' 'libwebp>=0.2.0' 'libtheora' 'nettle' 'speex' 'xvidcore' 'openal' 'xdg-utils' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme' 'unvanquished-data')
makedepends=('git' 'cmake')
provides=('unvanquished')
conflicts=('unvanquished-git')
options=('emptydirs')
source=("https://github.com/${_pkgname}/${_pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('64571cd06c475242f3c460d3902328e3')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
sed -e "s#$_pkgname#$pkgname#g" -i CMakeLists.txt
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/share \
..
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}/build
make DESTDIR=${pkgdir} install
install -d $pkgdir/usr/bin
echo "#!/bin/bash" > $pkgdir/usr/bin/$pkgname
echo "cd /usr/share/$pkgname" >> $pkgdir/usr/bin/$pkgname
echo "./daemon $@" >> $pkgdir/usr/bin/$pkgname
chmod +x $pkgdir/usr/bin/$pkgname
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment