summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishnu V K2019-07-23 00:16:32 +0530
committerVishnu V K2019-07-23 00:16:32 +0530
commit72d9833ac56cb6b5e9e8d2e823fac786118a3e3b (patch)
treec83246eaa22fd5bee21126bbcc20afb271c7d2bf
parent6225620b05478490412ca9b96f00365fcbd83e8b (diff)
downloadaur-72d9833ac56cb6b5e9e8d2e823fac786118a3e3b.tar.gz
fix directory
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD22
2 files changed, 12 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bc6cde31617..2826530ecb6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = armagetronad-git
pkgdesc = A Tron Clone in 3D.
pkgver = r4128.7392b902f
- pkgrel = 3
+ pkgrel = 4
url = http://armagetronad.net/
arch = x86_64
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index b344be83e5e..863173c7658 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
_pkgname=armagetronad
pkgname=${_pkgname}-git
pkgver='r4128.7392b902f'
-pkgrel=3
+pkgrel=4
pkgdesc='A Tron Clone in 3D.'
arch=('x86_64')
url='http://armagetronad.net/'
@@ -26,14 +26,14 @@ pkgver() {
}
prepare(){
- cd "$srcdir/$_pkgver"
+ cd "${srcdir}/${_pkgname}"
# python2 fix
sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' language/update.py
}
build() {
- cd "$srcdir/$_pkgver"
+ cd "${srcdir}/${_pkgname}"
./bootstrap.sh
@@ -47,13 +47,13 @@ build() {
}
package() {
- cd "$srcdir/$_pkgver"
- make DESTDIR="$pkgdir" install
- install -D -m 644 "desktop/$_pkgname-armagetronad.desktop" "$pkgdir/usr/share/applications/$_pkgname-armagetronad.desktop"
- install -d "$pkgdir/usr/share/pixmaps/"
+ cd "${srcdir}/${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+ install -D -m 644 "desktop/${_pkgname}-armagetronad.desktop" "${pkgdir}/usr/share/applications/${_pkgname}-armagetronad.desktop"
+ install -d "${pkgdir}/usr/share/pixmaps/"
ln -s /usr/share/armagetronad/desktop/icons/large/armagetronad.png \
- "$pkgdir/usr/share/pixmaps/$_pkgname-armagetronad.png"
- mv "$pkgdir/usr/bin/armagetronad" "$pkgdir/usr/bin/armagetronad_bin"
- printf "#!/bin/bash\n/usr/bin/armagetronad_bin --configdir /etc/armagetronad --datadir /usr/share/armagetronad" > "$pkgdir/usr/bin/armagetronad"
- chmod +x "$pkgdir/usr/bin/armagetronad"
+ "${pkgdir}/usr/share/pixmaps/${_pkgname}-armagetronad.png"
+ mv "${pkgdir}/usr/bin/armagetronad" "${pkgdir}/usr/bin/armagetronad_bin"
+ printf "#!/bin/bash\n/usr/bin/armagetronad_bin --configdir /etc/armagetronad --datadir /usr/share/armagetronad" > "${pkgdir}/usr/bin/armagetronad"
+ chmod +x "${pkgdir}/usr/bin/armagetronad"
}