# 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() { install -Dm755 "build/gmqcc" "${pkgdir}/usr/bin/gmqcc" install -Dm755 "build/qcvm" "${pkgdir}/usr/bin/qcvm" install -Dm644 "build/libgmqcclib.a" "${pkgdir}/usr/lib/libgmqcclib.a" install -Dm644 "gmqcc/doc/gmqcc.1" "${pkgdir}/usr/share/man/man1/gmqcc.1" install -Dm644 "gmqcc/doc/qcvm.1" "${pkgdir}/usr/share/man/man1/qcvm.1" }