From: matthiaskrgr Date: Sat, 2 Feb 2013 08:54:31 +0000 (+0100) Subject: PKGBUILDs: rename "arch" to "archlinux", move archbsd PKGBUILDs into own "archbsd... X-Git-Tag: before-library~167^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2e07a7b2c1a008aee24db9acc21c5b69ad4e38c8;p=xonotic%2Fgmqcc.git PKGBUILDs: rename "arch" to "archlinux", move archbsd PKGBUILDs into own "archbsd" parent directory. --- diff --git a/distro/arch/bsd-git/PKGBUILD b/distro/arch/bsd-git/PKGBUILD deleted file mode 100644 index 2144110..0000000 --- a/distro/arch/bsd-git/PKGBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: matthiaskrgr -# Contributor: Wolfgang Bumiller - -pkgname=gmqcc-git -pkgver=20130127 -pkgrel=1 -pkgdesc="An Improved Quake C Compiler" -arch=('i686' 'x86_64') -depends=() -conflicts=('gmqcc') -provides=('gmqcc=0.2.4') -makedepends=('git') -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..." - gmake -} - -check() { - cd "$srcdir"/"$_gitname" - gmake check -} - -package() { - cd "$srcdir"/"$_gitname" - msg "Compiling and installing to pkgdir this time..." - gmake install DESTDIR=$pkgdir PREFIX=/usr/local MANDIR=/usr/local/man - msg "Compiling done." - - install -dm755 ${pkgdir}/usr/local/share/licenses/gmqcc - install -m644 LICENSE ${pkgdir}/usr/local/share/licenses/gmqcc/LICENSE -} diff --git a/distro/arch/bsd-release/PKGBUILD b/distro/arch/bsd-release/PKGBUILD deleted file mode 100644 index 8c449c6..0000000 --- a/distro/arch/bsd-release/PKGBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Contributor: matthiaskrgr -# Contributor: Wolfgang Bumiller - -pkgname=gmqcc -pkgver=0.2.2 -pkgrel=1 -pkgdesc="An Improved Quake C Compiler" -arch=('i686' 'x86_64') -depends=() -url="https://github.com/graphitemaster/gmqcc.git" -license=('MIT') -source=(gmqcc-$pkgver.zip::https://github.com/graphitemaster/gmqcc/zipball/$pkgver) -sha1sums=('8cd91dc13f70cd9d3767602bf3eb47a1906d9353') - -_gitname=graphitemaster-gmqcc-de24486/ - -build() { - msg "Starting compilation..." - cd "$srcdir"/"$_gitname" - - msg "Compiling..." - gmake -} - -check() { - cd "$srcdir"/"$_gitname" - gmake check -} - -package() { - cd "$srcdir"/"$_gitname" - msg "Compiling and installing to pkgdir this time..." - gmake install DESTDIR=$pkgdir PREFIX=/usr/local MANDIR=/usr/local/man - msg "Compiling done." - - install -dm755 ${pkgdir}/usr/local/share/licenses/gmqcc - install -m644 LICENSE ${pkgdir}/usr/local/share/licenses/gmqcc/LICENSE -} diff --git a/distro/arch/git/PKGBUILD b/distro/arch/git/PKGBUILD deleted file mode 100644 index 4a9127c..0000000 --- a/distro/arch/git/PKGBUILD +++ /dev/null @@ -1,53 +0,0 @@ -# Contributor: matthiaskrgr - -pkgname=gmqcc-git -pkgver=20130127 -pkgrel=1 -pkgdesc="An Improved Quake C Compiler" -arch=('i686' 'x86_64') -depends=('glibc') -conflicts=('gmqcc') -provides=('gmqcc=0.2.4') -makedepends=('git') -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 deleted file mode 100644 index 1f8f66e..0000000 --- a/distro/arch/release/PKGBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Contributor: matthiaskrgr - -pkgname=gmqcc -pkgver=0.2.2 -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=('8cd91dc13f70cd9d3767602bf3eb47a1906d9353') - -_gitname=graphitemaster-gmqcc-de24486/ - -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 -} diff --git a/distro/arch/this/Makefile b/distro/arch/this/Makefile deleted file mode 100644 index 6e7c5c1..0000000 --- a/distro/arch/this/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -BASEDIR := ../../../ -PREFIX := /usr -HEADER := $(BASEDIR)/gmqcc.h -MAJOR := $(shell sed -n -e '/GMQCC_VERSION_MAJOR/{s/.* .* //;p;q;}' $(HEADER)) -MINOR := $(shell sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER)) -PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER)) -PKGREL := 1 -CARCH := $(shell uname -m) -PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH) -PKG := $(PKGDIR).pkg.tar.xz -PKGINFO := $(PKGDIR)/.PKGINFO - -base: clean - $(MAKE) -C $(BASEDIR) DESTDIR=distro/arch/this/$(PKGDIR) PREFIX=$(PREFIX) CFLAGS+=-m64 install - @echo "pkgname = gmqcc" > $(PKGINFO) - @echo "pkgver = $(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)" >> $(PKGINFO) - @echo "pkgdesc = An Improved Quake C Compiler" >> $(PKGINFO) - @echo "url = https://github.com/graphitemaster/gmqcc.git" >> $(PKGINFO) - @echo "builddate = `date -u \"+%s\"`" >> $(PKGINFO) - @echo "packager = Unknown Packager" >> $(PKGINFO) - @echo "size = `du -sk $(PKGDIR) | awk '{print $$1 * 1024}'`" >> $(PKGINFO) - @echo "arch = $(CARCH)" >> $(PKGINFO) - @echo "license = MIT" >> $(PKGINFO) - @echo "conflict = gmqcc" >> $(PKGINFO) - @echo "depend = glibc" >> $(PKGINFO) - @echo "makepkgopt = strip" >> $(PKGINFO) - @echo "makepkgopt = docs" >> $(PKGINFO) - @echo "makepkgopt = libtool" >> $(PKGINFO) - @echo "makepkgopt = emptydirs" >> $(PKGINFO) - @echo "makepkgopt = zipman" >> $(PKGINFO) - @echo "makepkgopt = purge" >> $(PKGINFO) - @echo "makepkgopt = !upx" >> $(PKGINFO) - @tar -cJvf $(PKG) -C $(PKGDIR)/ .PKGINFO usr/ - @rm -rf $(PKGDIR) - -clean: - @rm -f $(PKG) - - -all: base diff --git a/distro/archbsd/git/PKGBUILD b/distro/archbsd/git/PKGBUILD new file mode 100644 index 0000000..2144110 --- /dev/null +++ b/distro/archbsd/git/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: matthiaskrgr +# Contributor: Wolfgang Bumiller + +pkgname=gmqcc-git +pkgver=20130127 +pkgrel=1 +pkgdesc="An Improved Quake C Compiler" +arch=('i686' 'x86_64') +depends=() +conflicts=('gmqcc') +provides=('gmqcc=0.2.4') +makedepends=('git') +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..." + gmake +} + +check() { + cd "$srcdir"/"$_gitname" + gmake check +} + +package() { + cd "$srcdir"/"$_gitname" + msg "Compiling and installing to pkgdir this time..." + gmake install DESTDIR=$pkgdir PREFIX=/usr/local MANDIR=/usr/local/man + msg "Compiling done." + + install -dm755 ${pkgdir}/usr/local/share/licenses/gmqcc + install -m644 LICENSE ${pkgdir}/usr/local/share/licenses/gmqcc/LICENSE +} diff --git a/distro/archbsd/release/PKGBUILD b/distro/archbsd/release/PKGBUILD new file mode 100644 index 0000000..8c449c6 --- /dev/null +++ b/distro/archbsd/release/PKGBUILD @@ -0,0 +1,38 @@ +# Contributor: matthiaskrgr +# Contributor: Wolfgang Bumiller + +pkgname=gmqcc +pkgver=0.2.2 +pkgrel=1 +pkgdesc="An Improved Quake C Compiler" +arch=('i686' 'x86_64') +depends=() +url="https://github.com/graphitemaster/gmqcc.git" +license=('MIT') +source=(gmqcc-$pkgver.zip::https://github.com/graphitemaster/gmqcc/zipball/$pkgver) +sha1sums=('8cd91dc13f70cd9d3767602bf3eb47a1906d9353') + +_gitname=graphitemaster-gmqcc-de24486/ + +build() { + msg "Starting compilation..." + cd "$srcdir"/"$_gitname" + + msg "Compiling..." + gmake +} + +check() { + cd "$srcdir"/"$_gitname" + gmake check +} + +package() { + cd "$srcdir"/"$_gitname" + msg "Compiling and installing to pkgdir this time..." + gmake install DESTDIR=$pkgdir PREFIX=/usr/local MANDIR=/usr/local/man + msg "Compiling done." + + install -dm755 ${pkgdir}/usr/local/share/licenses/gmqcc + install -m644 LICENSE ${pkgdir}/usr/local/share/licenses/gmqcc/LICENSE +} diff --git a/distro/archlinux/git/PKGBUILD b/distro/archlinux/git/PKGBUILD new file mode 100644 index 0000000..4a9127c --- /dev/null +++ b/distro/archlinux/git/PKGBUILD @@ -0,0 +1,53 @@ +# Contributor: matthiaskrgr + +pkgname=gmqcc-git +pkgver=20130127 +pkgrel=1 +pkgdesc="An Improved Quake C Compiler" +arch=('i686' 'x86_64') +depends=('glibc') +conflicts=('gmqcc') +provides=('gmqcc=0.2.4') +makedepends=('git') +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/archlinux/release/PKGBUILD b/distro/archlinux/release/PKGBUILD new file mode 100644 index 0000000..1f8f66e --- /dev/null +++ b/distro/archlinux/release/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: matthiaskrgr + +pkgname=gmqcc +pkgver=0.2.2 +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=('8cd91dc13f70cd9d3767602bf3eb47a1906d9353') + +_gitname=graphitemaster-gmqcc-de24486/ + +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 +} diff --git a/distro/archlinux/this/Makefile b/distro/archlinux/this/Makefile new file mode 100644 index 0000000..6e7c5c1 --- /dev/null +++ b/distro/archlinux/this/Makefile @@ -0,0 +1,40 @@ +BASEDIR := ../../../ +PREFIX := /usr +HEADER := $(BASEDIR)/gmqcc.h +MAJOR := $(shell sed -n -e '/GMQCC_VERSION_MAJOR/{s/.* .* //;p;q;}' $(HEADER)) +MINOR := $(shell sed -n -e '/GMQCC_VERSION_MINOR/{s/.* .* //;p;q;}' $(HEADER)) +PATCH := $(shell sed -n -e '/GMQCC_VERSION_PATCH/{s/.* .* //;p;q;}' $(HEADER)) +PKGREL := 1 +CARCH := $(shell uname -m) +PKGDIR := gmqcc-$(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)-$(CARCH) +PKG := $(PKGDIR).pkg.tar.xz +PKGINFO := $(PKGDIR)/.PKGINFO + +base: clean + $(MAKE) -C $(BASEDIR) DESTDIR=distro/arch/this/$(PKGDIR) PREFIX=$(PREFIX) CFLAGS+=-m64 install + @echo "pkgname = gmqcc" > $(PKGINFO) + @echo "pkgver = $(MAJOR).$(MINOR).$(PATCH)-$(PKGREL)" >> $(PKGINFO) + @echo "pkgdesc = An Improved Quake C Compiler" >> $(PKGINFO) + @echo "url = https://github.com/graphitemaster/gmqcc.git" >> $(PKGINFO) + @echo "builddate = `date -u \"+%s\"`" >> $(PKGINFO) + @echo "packager = Unknown Packager" >> $(PKGINFO) + @echo "size = `du -sk $(PKGDIR) | awk '{print $$1 * 1024}'`" >> $(PKGINFO) + @echo "arch = $(CARCH)" >> $(PKGINFO) + @echo "license = MIT" >> $(PKGINFO) + @echo "conflict = gmqcc" >> $(PKGINFO) + @echo "depend = glibc" >> $(PKGINFO) + @echo "makepkgopt = strip" >> $(PKGINFO) + @echo "makepkgopt = docs" >> $(PKGINFO) + @echo "makepkgopt = libtool" >> $(PKGINFO) + @echo "makepkgopt = emptydirs" >> $(PKGINFO) + @echo "makepkgopt = zipman" >> $(PKGINFO) + @echo "makepkgopt = purge" >> $(PKGINFO) + @echo "makepkgopt = !upx" >> $(PKGINFO) + @tar -cJvf $(PKG) -C $(PKGDIR)/ .PKGINFO usr/ + @rm -rf $(PKGDIR) + +clean: + @rm -f $(PKG) + + +all: base