Package Details: gmqcc-git r1.3714a50-1

Git Clone URL: https://aur.archlinux.org/gmqcc-git.git (read-only, click to copy)
Package Base: gmqcc-git
Description: An Improved Quake C Compiler
Upstream URL: https://github.com/graphitemaster/gmqcc.git
Licenses: MIT
Conflicts: gmqcc
Provides: gmqcc=0.2.4
Submitter: EndlessEden
Maintainer: EndlessEden
Last Packager: EndlessEden
Votes: 0
Popularity: 0.000000
First Submitted: 2016-02-02 02:47
Last Updated: 2016-02-02 03:03

Dependencies (2)

Required by (0)

Sources (0)

Latest Comments

marrub commented on 2019-09-11 10:28

Package is very outdated (doesn't work) and uses various archaic methods of basic tasks, which are entirely unnecessary. Here's a diff to fix it.

diff --git a/.SRCINFO b/.SRCINFO
index [`3c749ef`](https://aur.archlinux.org/cgit/aur.git/commit/?h=gmqcc-git&id=3c749ef)..d0693cb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,14 @@
-# Generated by mksrcinfo v8
-# Tue Feb  2 03:02:50 UTC 2016
 pkgbase = gmqcc-git
    pkgdesc = An Improved Quake C Compiler
    pkgver = r1.3714a50
    pkgrel = 1
-   url = <https://github.com/graphitemaster/gmqcc.git>
+   url = <https://github.com/graphitemaster/gmqcc>
    arch = i686
    arch = x86_64
-   arch = armv6h
-   arch = armv7h
    license = MIT
-   makedepends = git
-   depends = glibc
-   provides = gmqcc=0.2.4
-   conflicts = gmqcc
+   makedepends = cmake
+   source = git+<https://github.com/graphitemaster/gmqcc.git>
+   sha256sums = SKIP

 pkgname = gmqcc-git

diff --git a/PKGBUILD b/PKGBUILD
index [`08850bd`](https://aur.archlinux.org/cgit/aur.git/commit/?h=gmqcc-git&id=08850bd)..6ab6d9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,71 +1,37 @@
 # Maintainer: M Novick <mnovick1988@gmail.com>
+# Contributor: Alison Watson <marrub@greyserv.net>
 # Contributor: matthiaskrgr <matthiaskrgr _strange_curverd_character_ freedroid D0T org>
-#
-# NOTE: Copied from AUR3 and updated.
-#
-

 pkgname=gmqcc-git
-pkgver=r1.3714a50
+pkgver=0.3.5.331.g451873a
 pkgrel=1
 pkgdesc="An Improved Quake C Compiler"
-arch=('i686' 'x86_64' 'armv6h' 'armv7h')
-depends=('glibc')
-conflicts=('gmqcc')
-provides=('gmqcc=0.2.4')
-makedepends=('git')
-url="<https://github.com/graphitemaster/gmqcc.git>"
+arch=('i686' 'x86_64')
+makedepends=('cmake')
+url="<https://github.com/graphitemaster/gmqcc>"
 license=('MIT')
-
-_gitroot="git://github.com/graphitemaster/gmqcc.git"
-_gitname="gmqcc"
+source=("git+<https://github.com/graphitemaster/gmqcc.git>")
+sha256sums=('SKIP')

 pkgver() {
-  cd "$srcdir"/"$_gitname"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+   cd gmqcc
+   git describe --tags | sed 's+-+.+g' | sed 's+^v++'
 }

-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
+prepare() {
+   mkdir -p build
+}

-   msg "Starting compilation..."
-   cd "$srcdir"/"$_gitname"
-        
-        msg "Configuring..."
-        cmake .
-        
-   msg "Compiling..."
+build() {
+   cd build
+   cmake ../gmqcc
    make
 }

-#check() {
-#  cd "$srcdir"/"$_gitname"
-#  make test
-#}
-
 package() {
-   cd "$srcdir"/"$_gitname"
-   msg "Building Pkg."
-   #make install DESTDIR=$pkgdir PREFIX=/usr
-   #msg "Compiling done."
-   mkdir -p ${pkgdir}/usr/lib
-        mkdir -p ${pkgdir}/usr/bin
-        install -D "$srcdir"/"$_gitname"/gmqcc ${pkgdir}/usr/bin/gmqcc
-        install -D "$srcdir"/"$_gitname"/testsuite ${pkgdir}/usr/bin/testsuite
-        install -D "$srcdir"/"$_gitname"/qcvm ${pkgdir}/usr/bin/qcvm
-        install -D "$srcdir"/"$_gitname"/libgmqcclib.a ${pkgdir}/usr/lib/libgmqcclib.a
-   install -D LICENSE ${pkgdir}/usr/share/licenses/gmqcc/LICENSE
+   install -Dm755 "build/gmqcc" "${pkgdir}/usr/bin/gmqcc"
+   install -Dm755 "build/qcvm" "${pkgdir}/usr/bin/qcvm"
+   install -Dm644 "build/libgmqcclib.a" "${pkgdir}/usr/lib/libgmqcclib.a"
+   install -Dm644 "gmqcc/doc/gmqcc.1" "${pkgdir}/usr/share/man/man1/gmqcc.1"
+   install -Dm644 "gmqcc/doc/qcvm.1" "${pkgdir}/usr/share/man/man1/qcvm.1"
 }