daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest May 6th, 2015 255 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
  2. # Contributors: Arkham, Christoph Zeiler, JD Steffen
  3.  
  4. pkgname=eduke32
  5. _pkgdate=20150505
  6. _pkgrev=5181
  7. pkgver=$_pkgdate.r$_pkgrev
  8. pkgrel=1
  9. pkgdesc="An advanced Duke Nukem 3D source port"
  10. arch=('i686' 'x86_64')
  11. url="http://eduke32.com/"
  12. license=('GPL' 'custom: BUILD')
  13. depends=('sdl2_mixer' 'libgl' 'libvpx' 'flac' 'gtk2')
  14. makedepends=('mesa' 'glu')
  15. [ "$CARCH" == "i686" ] && makedepends+=('nasm') # nasm is x86-only
  16. optdepends=('eduke32-hrp: High Resolution Pack'
  17.             'eduke32-dukeplus: Enhanced Mod'
  18.             'timidity-freepats: a free soundfont for music'
  19.             'fluidsynth: alternative midi sequencer'
  20.             'eduke32-shareware-episode: Duke Nukem 3D Demo')
  21. install=$pkgname.install
  22. source=("http://dukeworld.duke4.net/$pkgname/synthesis/$_pkgdate-$_pkgrev/${pkgname}_src_$_pkgdate-$_pkgrev.tar.xz"
  23.         "$pkgname.png"
  24.         "$pkgname.desktop")
  25. sha256sums=('90267f38ed79e3b6b8daaad40a7b5dc1fbebad280c74cf84771057d336ab0aa7'
  26.             'b55a264b4682afabd49587d700d4c85ce6c2e7af7ce2764dd217ebe167549863'
  27.             '9224aadf634448726d2e863ba9a455887dc3b90049238fe592b7f7b5634cbd79')
  28.  
  29. build() {
  30.   cd ${pkgname}_$_pkgdate-$_pkgrev
  31.  
  32.   # add cxxflags, explicitly disable c++ building, use sdl 2, set revision
  33.   make debug="$CXXFLAGS" CPLUSPLUS=0 SDL_TARGET=2 VC_REV=$_pkgrev
  34. }
  35.  
  36. package() {
  37.   cd ${pkgname}_$_pkgdate-$_pkgrev
  38.  
  39.   # install binaries, buildlicense, icon and desktop files
  40.   install -d "$pkgdir"/usr/bin
  41.   install -m755 eduke32 mapster32 "$pkgdir"/usr/bin
  42.   install -Dm644 package/common/buildlic.txt "$pkgdir"/usr/share/licenses/$pkgname/buildlic.txt
  43.   install -Dm644 ../$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
  44.   install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top