38 lines
963 B
Bash
38 lines
963 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() {
|
|
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"
|
|
}
|