mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
PKGBUILD: git: fix for pacman 4.1.0
This commit is contained in:
parent
47ebf7c84c
commit
5bb10260b3
1 changed files with 11 additions and 20 deletions
|
@ -1,50 +1,41 @@
|
|||
# Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
|
||||
|
||||
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
|
||||
pkgdesc="An Improved Quake C Compiler"
|
||||
arch=('i686' 'x86_64')
|
||||
depends=('glibc')
|
||||
conflicts=('gmqcc')
|
||||
provides=('gmqcc=0.2.4')
|
||||
provides=('gmqcc=0.2.4')v
|
||||
makedepends=('git')
|
||||
url="https://github.com/graphitemaster/gmqcc.git"
|
||||
license=('MIT')
|
||||
source=('gmqcc::git://github.com/graphitemaster/gmqcc.git')
|
||||
sha1sums=('SKIP')
|
||||
|
||||
_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"
|
||||
cd "$srcdir"/"gmqcc"
|
||||
|
||||
msg "Compiling..."
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"/"$_gitname"
|
||||
cd "$srcdir"/"gmqcc"
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"/"$_gitname"
|
||||
cd "$srcdir"/"gmqcc"
|
||||
msg "Compiling and installing to pkgdir this time..."
|
||||
make install DESTDIR=$pkgdir PREFIX=/usr
|
||||
msg "Compiling done."
|
||||
|
|
Loading…
Reference in a new issue