summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Biondi2020-05-30 19:48:55 +0200
committerMattia Biondi2020-05-30 19:48:55 +0200
commit1bb55ea25625caf4d5b32a8c3b8698ca58a7befe (patch)
treef567c344bd3f3a43c9b3179008aa65f056f67d0a
parent1921baf29661531e99c155f46e27783d50827e5a (diff)
downloadaur-1bb55ea25625caf4d5b32a8c3b8698ca58a7befe.tar.gz
Fix package name variable
-rw-r--r--PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 34a8ca2de12..edd9d4c540f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,7 @@
# Maintainer: Mattia Biondi <mattia biondi1 at gmail dot com>
-pkgname=umps2
+_name=umps
+_ver=2
+pkgname=$_name$_ver
pkgver=2.0.1
pkgrel=1
pkgdesc="Virtual machine simulator based around the MIPS R2/3000 microprocessor."
@@ -9,29 +11,29 @@ license=('GPL2')
depends=("qt4" 'libelf' 'boost' 'libsigc++' "cross-mipsel-linux-gnu-gcc")
makedepends=('autoconf' 'make')
conflicts=("umps2-git")
-source=("https://sourceforge.net/projects/mps/files/uMPS2/umps-$pkgver.tar.gz"
+source=("https://sourceforge.net/projects/mps/files/uMPS2/$_name-$pkgver.tar.gz"
"0001-upstream-fixes.patch")
md5sums=('60b72c2f8e2e5ab58de4277649e5e4ce'
'b8145ca1b9a4db35adb1fb2f43eabc5f')
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$_name-$pkgver"
patch --forward --strip=1 --input="${srcdir}/0001-upstream-fixes.patch"
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$_name-$pkgver"
autoreconf -fi
./configure --enable-maintainer-mode --with-mips-tool-prefix=mipsel-linux-gnu-
make
}
check() {
- cd "$pkgname-$pkgver"
+ cd "$_name-$pkgver"
make -k check
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$_name-$pkgver"
make DESTDIR="$pkgdir/" install
}