gmqcc/distro/archlinux/git/PKGBUILD

45 lines
892 B
Text
Raw Normal View History

2012-12-27 19:07:58 +00:00
# Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
pkgname=gmqcc-git
2013-04-12 20:08:10 +00:00
pkgver=0.2.524.gc6bd5e6
pkgver(){
cd gmqcc
git describe --tags | sed -e 's/^gmqcc\-//' -e 's/-/./g'
}
2012-12-26 18:58:40 +00:00
pkgrel=1
pkgdesc="An Improved Quake C Compiler"
arch=('i686' 'x86_64')
depends=('glibc')
conflicts=('gmqcc')
2013-04-12 20:08:10 +00:00
provides=('gmqcc=0.2.4')v
makedepends=('git')
2012-12-26 18:58:40 +00:00
url="https://github.com/graphitemaster/gmqcc.git"
2012-12-26 19:13:07 +00:00
license=('MIT')
2013-04-12 20:08:10 +00:00
source=('gmqcc::git://github.com/graphitemaster/gmqcc.git')
sha1sums=('SKIP')
2012-12-26 18:58:40 +00:00
build() {
cd $srcdir
msg "Starting compilation..."
2013-04-12 20:08:10 +00:00
cd "$srcdir"/"gmqcc"
2012-12-26 18:58:40 +00:00
msg "Compiling..."
make
}
check() {
2013-04-12 20:08:10 +00:00
cd "$srcdir"/"gmqcc"
2012-12-26 18:58:40 +00:00
make check
}
package() {
2013-04-12 20:08:10 +00:00
cd "$srcdir"/"gmqcc"
2012-12-26 18:58:40 +00:00
msg "Compiling and installing to pkgdir this time..."
make install DESTDIR=$pkgdir PREFIX=/usr
msg "Compiling done."
2012-12-26 19:07:51 +00:00
install -D LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE
2012-12-26 18:58:40 +00:00
}