Guest User

vvvvvv PKGBUILD

a guest
Sep 28th, 2021
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: gadget3000 <gadget3000 at msn dot com>
  2. # Contributor: mikers <mikeonthecomputer at gmail dot com>
  3. # Contributor: Xesxen <arch@xesxen.nl>
  4. # Contributor: Gaetan Bisson <bisson@archlinux.org>
  5. # Contributor: Chris Billington <chrisjbillington@gmail.com>
  6. # Maintainer: Eric Anderson <ejona86@gmail.com>
  7.  
  8. pkgname=vvvvvv
  9. _pkgname=VVVVVV
  10. pkgver=2.3.4
  11. pkgrel=2
  12. pkgdesc='A retro-styled 2D platformer'
  13. arch=('i686' 'x86_64')
  14. url='https://thelettervsixtim.es/'
  15. groups=('humblebundle3' 'humblebundle4' 'humblebundles')
  16. license=('custom')
  17. depends=('sh' 'sdl2_mixer')
  18. makedepends=('git' 'cmake')
  19. provides=('vvvvvv')
  20. conflicts=('vvvvvv')
  21. source=(
  22.     "${_pkgname}-${pkgver}.tar.gz::https://github.com/TerryCavanagh/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz"
  23.     "${pkgname}.desktop"
  24.     "https://thelettervsixtim.es/makeandplay/data.zip"
  25.     "LICENSE-data"
  26. )
  27. sha256sums=('514b85ee21a3a8d9bfb9af00bc0cd56766d69f84c817799781da93506f30dd9c'
  28.             '8c704e92e6abc8172d7d9fe726f1a0bba4b8630682745d6daf1f34ce12e0e3e4'
  29.             '6fae3cdec06062d05827d4181c438153f3ea3900437a44db73bcd29799fe57e0'
  30.             'fdc9b91bfe9f220101c0fc59b12750ed8eae41870b7bfa966c4599c96df3801c')
  31.  
  32. build() {
  33.   cd "${srcdir}/${_pkgname}-${pkgver}/desktop_version"
  34.   mkdir -p build
  35.   cd build
  36.   cmake -DOFFICIAL_BUILD=ON ..
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "${srcdir}/${_pkgname}-${pkgver}"
  42.  
  43.   install -D -m755 "desktop_version/build/${_pkgname}" \
  44.       "${pkgdir}/usr/lib/${pkgname}/${_pkgname}"
  45.   install -D -m644 "LICENSE.md" \
  46.       "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-bin"
  47.  
  48.   cd "${srcdir}"
  49.   install -D -m644 "LICENSE-data" \
  50.       "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-data"
  51.   install -D -m644 "data.zip" "${pkgdir}/usr/lib/${pkgname}"
  52.   install -D -m644 "VVVVVV.png" \
  53.       "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  54.  
  55.   install -d "${pkgdir}/usr/bin"
  56.   ln -s "../lib/${pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  57.   install -D -m644 "${srcdir}/${pkgname}.desktop" \
  58.       "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  59. }
  60.  
RAW Paste Data