Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.90 KB | None | 0 0
  1. # Maintainer Pol Marcet Sardà <polmarcetsarda@gmail.com>
  2.  
  3. pkgname=doomseeker
  4. pkgver=1.3
  5. pkgrel=2
  6. pkgdesc="A cross-platform Doom server browser"
  7. arch=('any')
  8. url="https://doomseeker.drdteam.org/"
  9. license=("LGPL")
  10.  
  11. depends=('zlib' 'bzip2' 'qt5-tools' 'qt5-base' 'qt5-multimedia')
  12. makedepends=('cmake' 'git')
  13. optdepends=('qt4: A cross-platform application and UI framework'
  14.             'zandronum: GZDoom fork supporting client/server multiplayer'
  15.             'odamex: Classic client/server multiplayer fork'
  16.             'chocolate-doom: Doom source port accurately reproducing the original DOS versions of Doom'
  17.             'srb2: A 3D Sonic fan game based off of Doom Legacy (aka "Sonic Robo Blast 2")')
  18.  
  19. source=("https://bitbucket.org/Doomseeker/doomseeker/get/${pkgver}.tar.bz2"
  20.         "https://bitbucket.org/Doomseeker/doomseeker-blobs/get/master.tar.bz2")
  21. sha512sums=('cb0e1a6540c2f3be07d545a48171382ad2a9dbd82c2b165d61be9ce58bfc6640932496a2ff75f611f5ef009a214f95b93cb22899072ce445009b054552104064'
  22.             'SKIP')
  23.  
  24. prepare() {
  25.      find ${srcdir}/ -maxdepth 1 -type d -name "Doomseeker-doomseeker-blobs-*" -print0 -quit | xargs -0 -r0 -I{} mv -f {} ${srcdir}/${pkgname}-blobs
  26.      find ${srcdir}/ -maxdepth 1 -type d -name "Doomseeker-doomseeker-*" -print0 -quit | xargs -0 -r0 -I{} mv -f {} ${srcdir}/${pkgname}
  27. }
  28.  
  29.  
  30. build() {
  31.     cd "${srcdir}/${pkgname}-blobs"
  32.     python3 geolite2_conv.py geo/GeoLite2-Country-Blocks-IPv4.csv geo/GeoLite2-Country-Locations-en.csv "$srcdir/$pkgname/src/core/IpToCountry.dat"
  33.     cd "${srcdir}/${pkgname}"
  34.     mkdir -p build
  35.     cd build
  36.     cmake   -DCMAKE_BUILD_TYPE=Release                              \
  37.             -DCMAKE_INSTALL_PREFIX=/usr                             \
  38.             -DDOOMSEEKER_IP2C_DAT:FILEPATH="IpToCountry.dat"        \
  39.             ..
  40.     make
  41. }
  42.  
  43. package() {
  44.     cd "${srcdir}/${pkgname}/build/"
  45.     make DESTDIR=${pkgdir} install
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement