gmqcc/distro/archlinux/git/PKGBUILD

49 lines
1.2 KiB
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
pkgver=0.2.612.g160e7cf
2013-04-12 20:08:10 +00:00
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')
provides=('gmqcc=0.2.4')
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() {
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 -Dm644 syntax/geany/filetypes.qc ${pkgdir}/usr/share/geany/filetypes.qc
install -Dm644 syntax/gtksourceview/qc.lang ${pkgdir}/usr/share/gtksourceview-3.0/language-specs/qc.lang
# jedit
install -Dm644 syntax/kate/qc.xml ${pkgdir}/usr/share/apps/katepart/syntax/qc.xml
install -Dm644 syntax/nano/qc.nanorc ${pkgdir}/usr/share/nano/qc.nanorc
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE
2012-12-26 18:58:40 +00:00
}