diff options
author | Patrick Northon | 2021-02-03 18:11:45 -0500 |
---|---|---|
committer | Patrick Northon | 2021-02-03 18:11:45 -0500 |
commit | 79d81792b13b608de1b255979c2d658a2b152b04 (patch) | |
tree | 268e30ccab366723a5063e9b6e8c798f6bef4d17 | |
parent | fcfebce1e196aba45323374304b97b832fc8cd76 (diff) | |
download | aur-79d81792b13b608de1b255979c2d658a2b152b04.tar.gz |
Overhaul and new fixed source.
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 68 |
3 files changed, 40 insertions, 41 deletions
@@ -1,15 +1,17 @@ pkgbase = 0verkill-git pkgdesc = Bloody 2D action deathmatch-like game in ASCII-ART - pkgver = 20130806 + pkgver = r148.1f36624 pkgrel = 1 - url = http://artax.karlin.mff.cuni.cz/~brain/0verkill/ + url = https://github.com/hackndev/0verkill arch = i686 arch = x86_64 - license = GPL + license = GPL2 makedepends = git - depends = xproto + depends = xorgproto depends = libx11 - conflicts = 0verkill + provides = 0verkill + source = git+https://github.com/patlefort/0verkill.git + sha256sums = SKIP pkgname = 0verkill-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* @@ -1,47 +1,43 @@ -# Maintainer: Will Price <will.price94+aur@gmail.com> +# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca> +# Contributor Will Price <will.price94+aur@gmail.com> + pkgname=0verkill-git -pkgver=20130806 +pkgver=r148.1f36624 pkgrel=1 -pkgdesc="Bloody 2D action deathmatch-like game in ASCII-ART" +pkgdesc="Bloody 2D action deathmatch-like game in ASCII-ART" arch=('i686' 'x86_64') -url="http://artax.karlin.mff.cuni.cz/~brain/0verkill/" -license=('GPL') -depends=('xproto' 'libx11') +url="https://github.com/hackndev/0verkill" +license=('GPL2') +depends=('xorgproto' 'libx11') makedepends=('git') -conflicts=('0verkill') +provides=('0verkill') +source=('git+https://github.com/patlefort/0verkill.git') +sha256sums=('SKIP') + +_name='0verkill' + +pkgver() { + cd "$_name" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} -_gitroot='https://github.com/hackndev/0verkill.git' -_gitname='0verkill' +prepare() { + cd "$_name" + autoupdate + autoreconf +} build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - # - # BUILD HERE - # - autoreconf - ./configure --prefix=/usr - make + cd "$_name" + ./configure --prefix=/usr + make } package() { - cd "$srcdir/$_gitname-build" - make DESTDIR="$pkgdir/" install + cd "$_name" + make DESTDIR="$pkgdir" install + install -Dpm644 'doc/COPYING' -t "${pkgdir}/usr/share/licenses/${_name}/" } - -# vim:set ts=2 sw=2 et: |