SHARE
TWEET

Untitled

a guest Dec 10th, 2016 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Sebastian Wolf <fatmike303 at googlemail dot com>
  2. pkgname=chipmachine
  3. pkgver=1.3c
  4. pkgrel=1
  5. _aponecommit=d320e07159a35f47cbc81ea45f145c27a976f98c
  6. _patchcommit1=31181465d5c8ba87efa6450c149dc00acffe0f6d
  7. _patchcommit2=44ed091a4305b2231595bd7f62c11803eb66aeb7
  8. pkgdesc='A demoscene/retro Jukebox/spotify-like music player'
  9. arch=('i686' 'x86_64')
  10. url='https://github.com/sasq64/chipmachine'
  11. depends=('mpg123' 'glew' 'glfw' 'curl')
  12. makedepends=('cmake' 'ninja' 'vim')
  13. license=('MIT')
  14. source=(https://github.com/sasq64/${pkgname}/archive/v${pkgver}.tar.gz
  15.         apone.tar.gz::https://github.com/sasq64/apone/archive/${_aponecommit}.tar.gz
  16.         two-missing-std-specifiers.patch::https://github.com/sasq64/${pkgname}/commit/${_patchcommit1}.patch
  17.         fixed-against-latest-apone.patch::https://github.com/sasq64/${pkgname}/commit/${_patchcommit2}.patch)
  18. sha256sums=('fe83080035a6ba23917a79b9133e29b2b934e7711fb21e8039eff3a9411fd354'
  19.             'fc9e60c3b57065ec0b65dff649aa4bd4212e3ec8c496326be63d9cf5fe427499'
  20.             '7dc76d37e016a5109efb471b30b3c46246ea231ad3cd6e45bd8a6a438cccfd44'
  21.             '531db4559b7cb57e20409e26d500aa82dc8e6c03aa437547affdd88c5cb03997')
  22.  
  23. prepare() {
  24.   cd ${pkgname}-${pkgver}
  25.  
  26.   # https://github.com/sasq64/chipmachine/commit/3118146
  27.   patch -p1 -i "${srcdir}"/two-missing-std-specifiers.patch
  28.  
  29.   # https://github.com/sasq64/chipmachine/commit/44ed091
  30.   patch -p1 -i "${srcdir}"/fixed-against-latest-apone.patch
  31.  
  32.   ln -s "${srcdir}"/apone-${_aponecommit} "${srcdir}"/apone
  33.   mkdir "${srcdir}"/build
  34. }
  35.  
  36. build() {
  37.   cd build
  38.  
  39.   cmake ../${pkgname}-${pkgver} \
  40.     -GNinja -DCMAKE_BUILD_TYPE=Release
  41.   ninja
  42. }
  43.  
  44. package() {
  45.   cd ${pkgname}-${pkgver}
  46.  
  47.   # Binary
  48.   install -D -m755 "${srcdir}"/build/${pkgname} "${pkgdir}"/usr/lib/${pkgname}/${pkgname}
  49.   install -d -m755 "${pkgdir}"/usr/bin/
  50.   ln -s /usr/lib/${pkgname}/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
  51.  
  52.   # Directories
  53.   install -d -m755 "${pkgdir}"/usr/lib/${pkgname}
  54.   cp -r data lua "${pkgdir}"/usr/lib/${pkgname}/
  55.  
  56.   # License
  57.   install -D -m644 "${srcdir}"/apone/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  58. }
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