Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
- # Contributors: Arkham, Christoph Zeiler, JD Steffen
- pkgname=eduke32
- _pkgdate=20150505
- _pkgrev=5181
- pkgver=$_pkgdate.r$_pkgrev
- pkgrel=1
- pkgdesc="An advanced Duke Nukem 3D source port"
- arch=('i686' 'x86_64')
- url="http://eduke32.com/"
- license=('GPL' 'custom: BUILD')
- depends=('sdl2_mixer' 'libgl' 'libvpx' 'flac' 'gtk2')
- makedepends=('mesa' 'glu')
- [ "$CARCH" == "i686" ] && makedepends+=('nasm') # nasm is x86-only
- optdepends=('eduke32-hrp: High Resolution Pack'
- 'eduke32-dukeplus: Enhanced Mod'
- 'timidity-freepats: a free soundfont for music'
- 'fluidsynth: alternative midi sequencer'
- 'eduke32-shareware-episode: Duke Nukem 3D Demo')
- install=$pkgname.install
- source=("http://dukeworld.duke4.net/$pkgname/synthesis/$_pkgdate-$_pkgrev/${pkgname}_src_$_pkgdate-$_pkgrev.tar.xz"
- "$pkgname.png"
- "$pkgname.desktop")
- sha256sums=('90267f38ed79e3b6b8daaad40a7b5dc1fbebad280c74cf84771057d336ab0aa7'
- 'b55a264b4682afabd49587d700d4c85ce6c2e7af7ce2764dd217ebe167549863'
- '9224aadf634448726d2e863ba9a455887dc3b90049238fe592b7f7b5634cbd79')
- build() {
- cd ${pkgname}_$_pkgdate-$_pkgrev
- # add cxxflags, explicitly disable c++ building, use sdl 2, set revision
- make debug="$CXXFLAGS" CPLUSPLUS=0 SDL_TARGET=2 VC_REV=$_pkgrev
- }
- package() {
- cd ${pkgname}_$_pkgdate-$_pkgrev
- # install binaries, buildlicense, icon and desktop files
- install -d "$pkgdir"/usr/bin
- install -m755 eduke32 mapster32 "$pkgdir"/usr/bin
- install -Dm644 package/common/buildlic.txt "$pkgdir"/usr/share/licenses/$pkgname/buildlic.txt
- install -Dm644 ../$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
- install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement