summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 22 insertions, 14 deletions
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