gmqcc-git/PKGBUILD

37 lines
807 B
Bash
Raw Normal View History

2016-02-01 19:03:05 -08:00
# Maintainer: M Novick <mnovick1988@gmail.com>
2019-09-11 03:29:42 -07:00
# Contributor: Alison Watson <marrub@greyserv.net>
2016-02-01 19:03:05 -08:00
# Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
pkgname=gmqcc-git
2019-09-11 03:29:42 -07:00
pkgver=0.3.5.331.g451873a
2016-02-01 19:03:05 -08:00
pkgrel=1
pkgdesc="An Improved Quake C Compiler"
2019-09-11 03:29:42 -07:00
arch=('i686' 'x86_64')
makedepends=('cmake')
url="https://github.com/graphitemaster/gmqcc"
2016-02-01 19:03:05 -08:00
license=('MIT')
2019-09-11 03:29:42 -07:00
source=("git+https://github.com/graphitemaster/gmqcc.git")
sha256sums=('SKIP')
2016-02-01 19:03:05 -08:00
pkgver() {
2019-09-11 03:29:42 -07:00
cd gmqcc
git describe --tags | sed 's+-+.+g' | sed 's+^v++'
2016-02-01 19:03:05 -08:00
}
2019-09-11 03:29:42 -07:00
prepare() {
mkdir -p build
}
2016-02-01 19:03:05 -08:00
2019-09-11 03:29:42 -07:00
build() {
cd build
cmake ../gmqcc
2016-02-01 19:03:05 -08:00
make
}
package() {
2019-09-11 03:29:42 -07:00
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"
2016-02-01 19:03:05 -08:00
}