summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevku2017-10-25 22:18:40 +0300
committerkevku2017-10-25 22:18:40 +0300
commit86e722abbc26ea241d6c92bdbafb480a05f1386b (patch)
treeac3532453da7d3ba87c4fcb1d0e7c17fd5e23eac
parentcb59b6c7fd5e019fe12dd4482956de312b586957 (diff)
downloadaur-86e722abbc26ea241d6c92bdbafb480a05f1386b.tar.gz
fix package
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD37
2 files changed, 14 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7415ad4b28b..aa418f4d7c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = chrome-token-signing
pkgdesc = Estonian ID Card signing for Chrome. Chrome extension and native messaging client.
pkgver = 1.0.6.485
- pkgrel = 2
+ pkgrel = 3
epoch = 1
url = http://www.id.ee/
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index b7fbb78a9f5..e3c21158896 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: kevku <kevku@gmx.com>
pkgname=chrome-token-signing
pkgver=1.0.6.485
-pkgrel=2
+pkgrel=3
epoch=1
pkgdesc="Estonian ID Card signing for Chrome. Chrome extension and native messaging client."
arch=('x86_64' 'i686')
@@ -14,32 +14,21 @@ sha256sums=('cdbaf49fe7e6076318a2770513542453ea04859168b5b03b11a43acb263ad39b')
validpgpkeys=('43650273CE9516880D7EB581B339B36D592073D4')
build() {
- cd "$srcdir/"
- export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
- make
+ cd "$srcdir/"
+ export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+ make -f GNUmakefile Linux
}
package() {
- cd "$srcdir/"
- install -Dm755 host-linux/$pkgname "$pkgdir/usr/bin/$pkgname"
- install -Dm644 host-linux/ee.ria.esteid.json "$pkgdir/usr/share/$pkgname/ee.ria.esteid.json"
- install -Dm644 ckjefchnfjhjfedoccjbhjpbncimppeg.json "$pkgdir/usr/share/$pkgname/ckjefchnfjhjfedoccjbhjpbncimppeg.json"
-
- mkdir -p $pkgdir/etc/{opt/chrome,chrome,chromium,chromium-browser}/native-messaging-hosts
- mkdir -p $pkgdir/usr/share/{chrome,google-chrome,chromium,chromium-browser}/extensions/
- mkdir -p $pkgdir/usr/lib/mozilla/native-messaging-hosts/
-
- ln -sf "/usr/share/$pkgname/ee.ria.esteid.json" "$pkgdir/etc/chrome/native-messaging-hosts/ee.ria.esteid.json"
- ln -sf "/usr/share/$pkgname/ee.ria.esteid.json" "$pkgdir/etc/chromium/native-messaging-hosts/ee.ria.esteid.json"
- ln -sf "/usr/share/$pkgname/ee.ria.esteid.json" "$pkgdir/etc/chromium-browser/native-messaging-hosts/ee.ria.esteid.json"
- ln -sf "/usr/share/$pkgname/ee.ria.esteid.json" "$pkgdir/etc/opt/chrome/native-messaging-hosts/ee.ria.esteid.json"
- #firefox
- install -Dm644 "host-linux/ff/ee.ria.esteid.json" "$pkgdir/usr/lib/mozilla/native-messaging-hosts/ee.ria.esteid.json"
- install -Dm644 "{443830f0-1fff-4f9a-aa1e-444bafbc7319}.xpi" "$pkgdir/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{443830f0-1fff-4f9a-aa1e-444bafbc7319}.xpi"
- ln -sf "/usr/share/$pkgname/ckjefchnfjhjfedoccjbhjpbncimppeg.json" $pkgdir/usr/share/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
- ln -sf "/usr/share/$pkgname/ckjefchnfjhjfedoccjbhjpbncimppeg.json" $pkgdir/usr/share/google-chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
- ln -sf "/usr/share/$pkgname/ckjefchnfjhjfedoccjbhjpbncimppeg.json" $pkgdir/usr/share/chromium/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
- ln -sf "/usr/share/$pkgname/ckjefchnfjhjfedoccjbhjpbncimppeg.json" $pkgdir/usr/share/chromium-browser/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json
+ cd "$srcdir/host-linux"
+ make INSTALL_ROOT="$pkgdir/" install
+ mkdir -p $pkgdir/etc/{chromium,chromium-browser}/native-messaging-hosts
+ mkdir -p $pkgdir/usr/share/{google-chrome,chromium,chromium-browser}/extensions/
+ ln -sf /etc/opt/chrome/native-messaging-hosts/ee.ria.esteid.json "$pkgdir/etc/chromium/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf /etc/opt/chrome/native-messaging-hosts/ee.ria.esteid.json "$pkgdir/etc/chromium-browser/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf /opt/google/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json "$pkgdir/usr/share/chromium/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json"
+ ln -sf /opt/google/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json "$pkgdir/usr/share/chromium-browser/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json"
+ ln -sf /opt/google/chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json "$pkgdir/usr/share/google-chrome/extensions/ckjefchnfjhjfedoccjbhjpbncimppeg.json"
}