summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD36
2 files changed, 24 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7a0e92e86d3..560491a0e75 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,8 +7,8 @@ pkgbase = nsnake
arch = i686
license = GPL3
depends = ncurses
- source = https://github.com/alexdantas/nsnake/archive/v3.0.1.tar.gz
- md5sums = bb024bdf8f95989b38c4893a99228d34
+ source = nsnake-v3.0.1.tar.gz::https://github.com/alexdantas/nSnake/archive/v3.0.1.tar.gz
+ sha256sums = 7240dafe35e17b01134591d7ae8f09f5a375cded8b01e43ba97ca3610a09ea61
pkgname = nsnake
diff --git a/PKGBUILD b/PKGBUILD
index 1ee29de82b2..d8cca3636c4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,35 @@
-# Maintainer: megadriver <megadriver at gmx dot com>
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+# Contributor: megadriver <megadriver at gmx dot com>
# Contributor: Lucas de Sena <lucas DOT ta23 @ gmail DOT com>
-# Contributor: Alexandre Dantas <eu @ alexdantas DOT net>
+# Contributor: Alexandre Dantas <eu @ alexdantas DOT net>
-pkgname=nsnake
-pkgver=3.0.1
-pkgrel=2
-pkgdesc="Customizable Snake game with ncurses for the terminal"
+set -u
+pkgname='nsnake'
+pkgver='3.0.1'
+pkgrel='2'
+pkgdesc='Customizable Snake game with ncurses for the terminal'
arch=('x86_64' 'i686')
-url="http://nsnake.alexdantas.net/"
+url='http://nsnake.alexdantas.net/'
license=('GPL3')
depends=('ncurses')
-source=(https://github.com/alexdantas/$pkgname/archive/v$pkgver.tar.gz)
-md5sums=('bb024bdf8f95989b38c4893a99228d34')
+_url='https://github.com/alexdantas/nSnake'
+_verwatch=("${_url}/releases" "${_url#*github.com}/archive/v\(.*\)\.tar\.gz" 'l')
+source=("${pkgname}-v${pkgver}.tar.gz::${_url}/archive/v${pkgver}.tar.gz")
+sha256sums=('7240dafe35e17b01134591d7ae8f09f5a375cded8b01e43ba97ca3610a09ea61')
build() {
- cd "$srcdir/nSnake-$pkgver"
+ set -u
+ cd "${srcdir}/nSnake-${pkgver}"
- make
+ make -s -j "$(nproc)"
+ set +u
}
package() {
- cd "$srcdir/nSnake-$pkgver"
+ set -u
+ cd "${srcdir}/nSnake-${pkgver}"
- make DESTDIR="$pkgdir" PREFIX="/usr" install
+ make DESTDIR="${pkgdir}" PREFIX='/usr' install
+ set +u
}
-
+set +u