gmqcc-git/PKGBUILD
2019-09-11 06:29:42 -04:00

37 lines
807 B
Bash

# Maintainer: M Novick <mnovick1988@gmail.com>
# Contributor: Alison Watson <marrub@greyserv.net>
# Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
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"
}