summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkevku2015-06-16 21:08:58 +0300
committerkevku2015-06-16 21:08:58 +0300
commit4435722cb564332a0e732f194af657eab948128e (patch)
treead5dcb509aa8b8b7e33a78caf10ad3c73cac46fb
downloadaur-4435722cb564332a0e732f194af657eab948128e.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD49
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..87a083bfae2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = chrome-token-signing
+ pkgdesc = Estonian ID Card signing for Chrome. Chrome extension and native messaging client.
+ pkgver = 3.9.0.374
+ pkgrel = 2
+ url = http://www.id.ee/
+ arch = x86_64
+ arch = i686
+ license = LGPL2.1
+ depends = gtkmm3
+ depends = pcsclite
+ depends = ccid
+ source = https://installer.id.ee/media/sources/chrome-token-signing-3.9.0.374.tar.gz
+ source = https://installer.id.ee/media/sources/chrome-token-signing-3.9.0.374.tar.gz.asc
+ sha256sums = 6055149e110d290ac93e52ee904d2ebdd43d5a5a7d6b242b8d5f28dec0bb7111
+ sha256sums = SKIP
+
+pkgname = chrome-token-signing
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6aa0496b03e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Your Name <youremail@domain.com>
+pkgname=chrome-token-signing
+pkgver=3.9.0.374
+pkgrel=2
+pkgdesc="Estonian ID Card signing for Chrome. Chrome extension and native messaging client."
+arch=('x86_64' 'i686')
+url="http://www.id.ee/"
+license=('LGPL2.1')
+depends=('gtkmm3' 'pcsclite' 'ccid')
+source=("https://installer.id.ee/media/sources/${pkgname}-${pkgver}.tar.gz"
+ "https://installer.id.ee/media/sources/${pkgname}-${pkgver}.tar.gz.asc")
+sha256sums=('6055149e110d290ac93e52ee904d2ebdd43d5a5a7d6b242b8d5f28dec0bb7111'
+ 'SKIP')
+validpgpkeys=('43650273CE9516880D7EB581B339B36D592073D4')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ rm json/jsonxx.o
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -Dm755 out/$pkgname "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 ee.ria.esteid.json "$pkgdir/usr/share/$pkgname/native-messaging-hosts/ee.ria.esteid.json"
+ install -Dm644 esteid_policy.json "$pkgdir/usr/share/$pkgname/policies/managed/esteid_policy.json"
+ install -Dm644 $pkgname.crx "$pkgdir/usr/share/$pkgname/$pkgname.crx"
+ install -Dm644 update.xml "$pkgdir/usr/share/$pkgname/update.xml"
+ mkdir -p $pkgdir/etc/{chrome,chromium,chromium-browser}/native-messaging-hosts
+ mkdir -p $pkgdir/etc/{chrome,chromium,chromium-browser}/policies/managed
+ mkdir -p $pkgdir/etc/opt/chrome/native-messaging-hosts
+ mkdir -p $pkgdir/etc/opt/chrome/policies/managed
+
+ ln -sf "/usr/share/$pkgname/native-messaging-hosts/ee.ria.esteid.json" "$pkgdir/etc/chrome/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf "/usr/share/$pkgname/policies/managed/esteid_policy.json" "$pkgdir/etc/chrome/policies/managed/esteid_policy.json"
+ ln -sf "/usr/share/$pkgname/native-messaging-hosts/ee.ria.esteid.json" "$pkgdir/etc/chromium/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf "/usr/share/$pkgname/policies/managed/esteid_policy.json" "$pkgdir/etc/chromium/policies/managed/esteid_policy.json"
+ ln -sf "/usr/share/$pkgname/native-messaging-hosts/ee.ria.esteid.json" "$pkgdir/etc/chromium-browser/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf "/usr/share/$pkgname/policies/managed/esteid_policy.json" "$pkgdir/etc/chromium-browser/policies/managed/esteid_policy.json"
+ ln -sf "/usr/share/$pkgname/native-messaging-hosts/ee.ria.esteid.json" "$pkgdir/etc/opt/chrome/native-messaging-hosts/ee.ria.esteid.json"
+ ln -sf "/usr/share/$pkgname/policies/managed/esteid_policy.json" "$pkgdir/etc/opt/chrome/policies/managed/esteid_policy.json"
+
+
+
+}