From 728a8e975ae9f07690acd13a3ebf7a18bbec0285 Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 19:58:40 +0100 Subject: [PATCH 1/6] add PKGBUILD for git build. --- distro/arch/git/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 distro/arch/git/PKGBUILD diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD new file mode 100644 index 0000000..22e69c7 --- /dev/null +++ b/distro/arch/git/PKGBUILD @@ -0,0 +1,46 @@ +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=('GPL') + +_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." +} From c3a867f0c2144ec02dfccdae680b1ed56c636267 Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 20:03:17 +0100 Subject: [PATCH 2/6] PKGBUILD: license is not GPL actually --- distro/arch/git/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD index 22e69c7..3f4130f 100644 --- a/distro/arch/git/PKGBUILD +++ b/distro/arch/git/PKGBUILD @@ -5,7 +5,7 @@ pkgdesc="An Improved Quake C Compiler" arch=('i686' 'x86_64') depends=('glibc') url="https://github.com/graphitemaster/gmqcc.git" -license=('GPL') +license=('custom') _gitroot="git://github.com/graphitemaster/gmqcc.git" _gitname="gmqcc" From 9bf6b2e1bda9bb97ce730da073359b1c38e45531 Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 20:07:51 +0100 Subject: [PATCH 3/6] PKGBUILD: install custom license file. --- distro/arch/git/PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD index 3f4130f..fbde6ac 100644 --- a/distro/arch/git/PKGBUILD +++ b/distro/arch/git/PKGBUILD @@ -43,4 +43,6 @@ package() { 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 } From 56568d24ffbc4041f6c0612285a9ad1346394046 Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 20:13:07 +0100 Subject: [PATCH 4/6] PKGBUILD: license is MIT --- distro/arch/git/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD index fbde6ac..c48c8e8 100644 --- a/distro/arch/git/PKGBUILD +++ b/distro/arch/git/PKGBUILD @@ -5,7 +5,7 @@ pkgdesc="An Improved Quake C Compiler" arch=('i686' 'x86_64') depends=('glibc') url="https://github.com/graphitemaster/gmqcc.git" -license=('custom') +license=('MIT') _gitroot="git://github.com/graphitemaster/gmqcc.git" _gitname="gmqcc" From 1ac110d426e275942cdf81b906b77f0af8e4a604 Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 20:17:29 +0100 Subject: [PATCH 5/6] add PKGBUILD for release build. --- distro/arch/release/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 distro/arch/release/PKGBUILD diff --git a/distro/arch/release/PKGBUILD b/distro/arch/release/PKGBUILD new file mode 100644 index 0000000..c00c9bf --- /dev/null +++ b/distro/arch/release/PKGBUILD @@ -0,0 +1,36 @@ +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 +} + From 1f867e3920e17779542e1ebfe9b30500c377f43e Mon Sep 17 00:00:00 2001 From: matthiaskrgr Date: Wed, 26 Dec 2012 20:21:41 +0100 Subject: [PATCH 6/6] PKGBUILD: formatting --- distro/arch/release/PKGBUILD | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/distro/arch/release/PKGBUILD b/distro/arch/release/PKGBUILD index c00c9bf..562b1e6 100644 --- a/distro/arch/release/PKGBUILD +++ b/distro/arch/release/PKGBUILD @@ -6,15 +6,14 @@ 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() { +build() { msg "Starting compilation..." - cd "$srcdir/$_gitname" + cd "$srcdir"/"$_gitname" msg "Compiling..." make @@ -33,4 +32,3 @@ package() { install -D LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE } -