gmqcc-git/PKGBUILD

38 lines
963 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-12 00:02:07 -07:00
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"
2016-02-01 19:03:05 -08:00
}