]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Merge pull request #74 from matthiaskrgr/PKGBUILD
authorWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 20:31:25 +0000 (12:31 -0800)
committerWolfgang Bumiller <blub@speed.at>
Wed, 26 Dec 2012 20:31:25 +0000 (12:31 -0800)
add arch PKGBUILDs for git and release build.

distro/arch/git/PKGBUILD [new file with mode: 0644]
distro/arch/release/PKGBUILD [new file with mode: 0644]

diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD
new file mode 100644 (file)
index 0000000..c48c8e8
--- /dev/null
@@ -0,0 +1,48 @@
+pkgname=gmqcc
+pkgver=20121226
+pkgrel=1
+pkgdesc="An Improved Quake C Compiler"
+arch=('i686' 'x86_64')
+depends=('glibc')
+url="https://github.com/graphitemaster/gmqcc.git"
+license=('MIT')
+
+_gitroot="git://github.com/graphitemaster/gmqcc.git"
+_gitname="gmqcc"
+
+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..."
+       cd "$srcdir"/"$_gitname"
+
+       msg "Compiling..."
+       make
+}
+
+check() {
+       cd "$srcdir"/"$_gitname"
+       make check
+}
+
+package() {
+       cd "$srcdir"/"$_gitname"
+       msg "Compiling and installing to pkgdir this time..."
+       make install DESTDIR=$pkgdir PREFIX=/usr
+       msg "Compiling done."
+
+       install -D LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE
+}
diff --git a/distro/arch/release/PKGBUILD b/distro/arch/release/PKGBUILD
new file mode 100644 (file)
index 0000000..562b1e6
--- /dev/null
@@ -0,0 +1,34 @@
+pkgname=gmqcc
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="An Improved Quake C Compiler"
+arch=('i686' 'x86_64')
+depends=('glibc')
+url="https://github.com/graphitemaster/gmqcc.git"
+license=('MIT')
+source=(gmqcc-$pkgver.zip::https://github.com/graphitemaster/gmqcc/zipball/$pkgver)
+sha1sums=('a35cf4e0898325b66e9f7014fa3fc961e42f0c9e')
+
+_gitname=graphitemaster-gmqcc-bd75e9a/
+
+build() {
+       msg "Starting compilation..."
+       cd "$srcdir"/"$_gitname"
+
+       msg "Compiling..."
+       make
+}
+
+check() {
+       cd "$srcdir"/"$_gitname"
+       make check
+}
+
+package() {
+       cd "$srcdir"/"$_gitname"
+       msg "Compiling and installing to pkgdir this time..."
+       make install DESTDIR=$pkgdir PREFIX=/usr
+       msg "Compiling done."
+
+       install -D LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE
+}