2011-07-22 16:34:54 +08:00
|
|
|
pkgname=odamex
|
2016-02-25 05:24:51 +08:00
|
|
|
pkgver=0.7.0
|
2013-04-26 16:04:57 +08:00
|
|
|
pkgrel=1
|
2011-07-22 16:34:54 +08:00
|
|
|
pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
|
2012-12-16 06:27:46 +08:00
|
|
|
arch=('x86_64')
|
2011-07-22 16:34:54 +08:00
|
|
|
url='http://odamex.net/'
|
|
|
|
license=('GPL')
|
2013-04-16 03:44:03 +08:00
|
|
|
depends=('portmidi' 'sdl_mixer')
|
|
|
|
makedepends=('cmake')
|
2012-03-07 19:00:46 +08:00
|
|
|
categories=('games')
|
2013-04-16 03:44:03 +08:00
|
|
|
install=install.sh
|
2011-07-22 16:34:54 +08:00
|
|
|
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-src-$pkgver.tar.bz2")
|
2016-02-25 05:24:51 +08:00
|
|
|
sha1sums=('a10690e7d4ad011fe63a6620eaab00e0934efa3e')
|
2011-07-22 16:34:54 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-src-$pkgver
|
|
|
|
|
2013-04-16 03:44:03 +08:00
|
|
|
sed \
|
|
|
|
-e 's|getenv("DOOMWADPATH")|"/usr/share/doom"|g' \
|
|
|
|
-i client/src/cl_download.cpp \
|
|
|
|
-i common/d_main.cpp
|
2011-07-22 16:34:54 +08:00
|
|
|
|
2012-12-16 06:27:46 +08:00
|
|
|
mkdir -p build && cd build
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
..
|
|
|
|
make
|
2011-07-22 16:34:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2012-12-16 06:27:46 +08:00
|
|
|
cd $srcdir/$pkgname-src-$pkgver/build
|
|
|
|
# make DESTDIR=$pkgdir install
|
|
|
|
|
|
|
|
install -Dm755 client/odamex $pkgdir/usr/bin/odamex
|
|
|
|
install -Dm755 server/odasrv $pkgdir/usr/bin/odasrv
|
2011-07-22 16:34:54 +08:00
|
|
|
|
2012-12-16 06:27:46 +08:00
|
|
|
cd ..
|
2011-07-22 16:34:54 +08:00
|
|
|
install -Dm644 odamex.wad $pkgdir/usr/share/doom/odamex.wad
|
|
|
|
install -Dm644 media/icon_odamex_96.png $pkgdir/usr/share/pixmaps/odamex.png
|
|
|
|
install -Dm644 media/icon_odasrv_96.png $pkgdir/usr/share/pixmaps/odasrv.png
|
|
|
|
install -Dm644 installer/arch/odamex.desktop $pkgdir/usr/share/applications/odamex.desktop
|
|
|
|
install -Dm644 installer/arch/odasrv.desktop $pkgdir/usr/share/applications/odasrv.desktop
|
|
|
|
}
|