daily pastebin goal
79%
SHARE
TWEET

gli pkgbuild for aur

a guest Jun 25th, 2016 166 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Thibault 'Ryp' Schueller  <ryp.sqrt@gmail.com>
  2. # Contributor: Carlo Casta <carlo.casta@gmail.com>
  3.  
  4. pkgname=gli
  5. pkgver=0.8.1.0
  6. pkgrel=1
  7. pkgdesc="OpenGL Image (GLI) is a header only C++ image library for graphics software"
  8. arch=('any')
  9. license=('MIT')
  10. url="http://gli.g-truc.net"
  11. provides=('glm=0.9.8.0')
  12. conflicts=('glm')
  13. source=("https://github.com/g-truc/gli/releases/download/${pkgver}/gli-${pkgver}.zip")
  14. sha512sums=('a3a0219903ebd445e377469047d482e5033441c0f610fc0f39b527ef20327892f9817b026a77c22198fec9ed1841d923c274e2b3fe0ed219309846348747c186')
  15.  
  16. package() {
  17.     cd $pkgname
  18.  
  19.     mkdir -p $pkgdir/usr/include/gli
  20.     cp -r gli $pkgdir/usr/include
  21.     rm -f $pkgdir/usr/include/gli/CMakeLists.txt
  22.  
  23.     # gli provides a custom / git version of GLM
  24.     mkdir -p $pkgdir/usr/include/glm
  25.     cp -r external/glm/glm $pkgdir/usr/include
  26.     rm -f $pkgdir/usr/include/glm/CMakeLists.txt
  27.  
  28.     find $pkgdir -type f -exec chmod 644 {} \;
  29.     find $pkgdir -type d -exec chmod 755 {} \;
  30. }
RAW Paste Data
Top