shaunlebron/blinky

Archlinux PKGBUILD

SpiritQuaddicted opened this issue · 0 comments

More of a proposal than an issue. :)

I made an ugly PKGBUILD for Archlinux but realised I had no idea how to make it work properly for a global installation. We would need it to be able to read its files from /usr/share/quake/. Without #79 this would be really messy in my opinion.

# Maintainer: up for grabs, no need to credit me
pkgname=blinky-quake
pkgver=1.3
pkgrel=1
pkgdesc="A Quake engine for 'exploring peripheral vision in games'"
arch=('i686' 'x86_64')
url="https://github.com/shaunlebron/blinky"
license=('GPL')
depends=('libxxf86vm' 'libxxf86dga' 'lua>=5.2')
#install=$pkgname.install
source=(https://github.com/shaunlebron/blinky/archive/$pkgver.tar.gz)
sha1sums=('732c718f769bcf97e3070968c331fee525aacfea')

build() {
  cd blinky-$pkgver
  ./build.sh
}

package() {
  cd ${srcdir}/blinky-${pkgver}/
  mkdir -p ${pkgdir}/usr/bin
  mkdir -p ${pkgdir}/usr/share/quake
  mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
  install -m755 game/blinky ${pkgdir}/usr/bin/
  cp -R game/lua-scripts ${pkgdir}/usr/share/quake/
  cp -R game/id1 ${pkgdir}/usr/share/quake/
  install -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/
}