summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFox Wilson2017-08-14 14:43:28 -0400
committerFox Wilson2017-08-14 14:43:28 -0400
commitf47748fb10341714b1d59a98d46d368b9d10cd39 (patch)
tree36cd10b9403128886e17e0722da65b0a3eca7d72
parentb90080a28581fdc9d9c55743fafe7f21b5973153 (diff)
downloadaur-f47748fb10341714b1d59a98d46d368b9d10cd39.tar.gz
fix installation to /usr issue
-rw-r--r--PKGBUILD19
1 files changed, 12 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3bb1c3b86a5..612fa96b1c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,29 @@
-# Maintainer: Daniel Nagy <danielnagy at gmx de>
+# Maintainer: Fox Wilson <fwilson at lessbroken.org>
pkgname=virtualsmartcard
pkgver=0.7
-pkgrel=1
+pkgrel=2
pkgdesc="Virtual Smart Card emulates a smart card and makes it accessible through PC/SC"
url="http://sourceforge.net/projects/vsmartcard/"
-arch=('i686' 'x86_64')
+arch=( "i686" "x86_64" )
license=( "GPLv3" )
-depends=( "pcsclite" )
+depends=( "pcsclite" "python2" )
makedepends=( "help2man" )
source=( "http://downloads.sourceforge.net/project/vsmartcard/$pkgname/$pkgname-$pkgver.tar.gz" )
sha1sums=('cc608b91682d13b42604fae6238f57cd0da0135c')
build() {
cd "$srcdir"/$pkgname-$pkgver
- ./configure --prefix=/usr
- make
+ ./configure --prefix=/
+ make PYTHON="/bin/python2"
}
package() {
cd "$srcdir"/$pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ make PYTHON="/bin/python2" DESTDIR="$pkgdir" install
+
+ cd "$pkgdir"
+ mv lib/* usr/lib
+ rmdir lib
+ mv bin usr
}