Guest User

PKGBUILD for Emilia Pinball 3.4

a guest
Apr 4th, 2021
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=pinball
  2. pkgdesc='Emilia Pinball: open source pinball simulator'
  3. pkgver=0.3.20201218
  4. pkgrel=1
  5. arch=(i686 x86_64)
  6. license=(GPL2)
  7. source=("https://github.com/adoptware/pinball/archive/refs/tags/${pkgver}.tar.gz")
  8. options=('!makeflags' 'libtool')
  9. sha512sums=('420181f43193714f777f4035e754bd6dd92cb4d2ebec3d6e57c1e538b850eab0f749eaab0c6a9c01fe2d5b67742c41a1ae0042e7542eae9e0cb0032b2afaf92f')
  10. makedepends=(automake)
  11. depends=(sh sdl_mixer sdl_image mesa gcc-libs)
  12.  
  13. build() {
  14.     cd "${pkgname}-${pkgver}"
  15.     ./bootstrap
  16.     ./configure --prefix=/usr --disable-sdltest
  17.     make
  18. }
  19.  
  20. package() {
  21.     cd "${pkgname}-${pkgver}"
  22.     make install DESTDIR="$pkgdir"
  23.     rm -rf "$pkgdir"/var/games
  24.    
  25.     install -Dm644 {,"$pkgdir"/usr/share/appdata/}pinball.appdata.xml
  26.    
  27.     sed -E 's|(^Icon=)|\1/usr/share/pinball/|g' pinball.desktop |
  28.     install -Dm644 /dev/stdin "$pkgdir"/usr/share/applications/pinball.desktop
  29. }
RAW Paste Data