# Maintainer: M Novick # Contributor: Alison Watson # Contributor: matthiaskrgr pkgname=gmqcc-git pkgver=0.3.5.331.g451873a pkgrel=1 pkgdesc="An Improved Quake C Compiler" arch=('i686' 'x86_64') makedepends=('cmake') url="https://github.com/graphitemaster/gmqcc" license=('MIT') source=("git+https://github.com/graphitemaster/gmqcc.git") sha256sums=('SKIP') pkgver() { cd gmqcc git describe --tags | sed 's+-+.+g' | sed 's+^v++' } prepare() { mkdir -p build } build() { cd build cmake ../gmqcc make } package() { cd build install -Dm755 "gmqcc" "${pkgdir}/usr/bin/gmqcc" install -Dm755 "qcvm" "${pkgdir}/usr/bin/qcvm" install -Dm644 "libgmqcclib.a" "${pkgdir}/usr/lib/libgmqcclib.a" }