Merge branch 'cooking' of github.com:graphitemaster/gmqcc into cooking

This commit is contained in:
Dale Weiler 2013-04-13 18:01:41 +00:00
commit c62d88cb57
3 changed files with 15 additions and 24 deletions

6
.gitignore vendored
View file

@ -7,10 +7,12 @@
testsuite testsuite
qcvm qcvm
gmqcc gmqcc
pak
distro/arch/* distro/archlinux/*
distro/archbsd/*
!distro/archlinux/git/PKGBUILD !distro/archlinux/git/PKGBUILD
!distro/archlinux/release/PKGBUILD !distro/archlinux/release/PKGBUILD
!distro/archbsd/release/PKGBUILD !distro/archbsd/release/PKGBUILD
!distro/archbsd/git/PKGBUILD !distro/archbsd/git/PKGBUILD
!distro/arch/this/Makefile !distro/archlinux/this/Makefile

View file

@ -1,7 +1,11 @@
# Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org> # Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
pkgname=gmqcc-git pkgname=gmqcc-git
pkgver=20130127 pkgver=0.2.524.gc6bd5e6
pkgver(){
cd gmqcc
git describe --tags | sed -e 's/^gmqcc\-//' -e 's/-/./g'
}
pkgrel=1 pkgrel=1
pkgdesc="An Improved Quake C Compiler" pkgdesc="An Improved Quake C Compiler"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -11,40 +15,25 @@ provides=('gmqcc=0.2.4')
makedepends=('git') makedepends=('git')
url="https://github.com/graphitemaster/gmqcc.git" url="https://github.com/graphitemaster/gmqcc.git"
license=('MIT') license=('MIT')
source=('gmqcc::git://github.com/graphitemaster/gmqcc.git')
sha1sums=('SKIP')
_gitroot="git://github.com/graphitemaster/gmqcc.git"
_gitname="gmqcc"
build() { build() {
cd $srcdir
msg "Connecting to the GIT server..."
if [[ -d $srcdir/$_gitname ]] ; then
cd $_gitname
msg "Removing build files..."
git clean -dfx
msg "Updating..."
git pull --no-tags
msg "The local files are updated."
else
msg "Cloning..."
git clone $_gitroot $_gitname --depth 1
msg "Clone done."
fi
msg "Starting compilation..." msg "Starting compilation..."
cd "$srcdir"/"$_gitname" cd "$srcdir"/"gmqcc"
msg "Compiling..." msg "Compiling..."
make make
} }
check() { check() {
cd "$srcdir"/"$_gitname" cd "$srcdir"/"gmqcc"
make check make check
} }
package() { package() {
cd "$srcdir"/"$_gitname" cd "$srcdir"/"gmqcc"
msg "Compiling and installing to pkgdir this time..." msg "Compiling and installing to pkgdir this time..."
make install DESTDIR=$pkgdir PREFIX=/usr make install DESTDIR=$pkgdir PREFIX=/usr
msg "Compiling done." msg "Compiling done."

View file

@ -9,7 +9,7 @@ depends=('glibc')
url="https://github.com/graphitemaster/gmqcc.git" url="https://github.com/graphitemaster/gmqcc.git"
license=('MIT') license=('MIT')
source=(gmqcc-$pkgver.zip::https://github.com/graphitemaster/gmqcc/zipball/$pkgver) source=(gmqcc-$pkgver.zip::https://github.com/graphitemaster/gmqcc/zipball/$pkgver)
sha1sums=('8cd91dc13f70cd9d3767602bf3eb47a1906d9353') sha1sums=('e0fe99af9a55d36cd9e0909a96d1b14f2db8b757')
_gitname=graphitemaster-gmqcc-de24486/ _gitname=graphitemaster-gmqcc-de24486/