summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuraj Fiala2016-04-09 14:19:26 +0200
committerJuraj Fiala2016-04-09 14:19:26 +0200
commit7a4480dc593b04176f2a35e4762956be2c757b29 (patch)
treea247d95ee125916c9143dc9338e1d2351e2682d8
parent0c4df922c4a7e81b0869e5b62afb5b6dd4280541 (diff)
downloadaur-7a4480dc593b04176f2a35e4762956be2c757b29.tar.gz
Added desktop file and icons.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD26
-rw-r--r--bitmask_client.install19
3 files changed, 44 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0683f54c2da..75b34100bdc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Sat Apr 9 10:31:30 UTC 2016
+# Sat Apr 9 12:19:26 UTC 2016
pkgbase = bitmask_client
pkgdesc = Encrypted communication for mere mortals.
pkgver = 0.9.1
- pkgrel = 3
+ pkgrel = 4
url = https://bitmask.net/
+ install = bitmask_client.install
arch = any
license = GPL3
makedepends = python-pyside-tools
@@ -29,7 +30,9 @@ pkgbase = bitmask_client
depends = python2-leap_mail
depends = python2-leap_pycommon
source = https://github.com/leapcode/bitmask_client/archive/0.9.1.tar.gz
+ source = https://github.com/leapcode/bitmask_client/archive/debian/experimental.zip
sha256sums = 7e907adeef60c61378c505d29f69d1cf777495215b356ce7ea3b0dc2b5c70dab
+ sha256sums = 3e5678ff608aca5ee034584014e0e4ae8a539c70d453949d322c138ba48a5cea
pkgname = bitmask_client
diff --git a/PKGBUILD b/PKGBUILD
index af177ba0b93..f7669dfe660 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_srcname=leap.bitmask
pkgname=bitmask_client
pkgver=0.9.1
-pkgrel=3
+pkgrel=4
pkgdesc='Encrypted communication for mere mortals.'
arch=('any')
url='https://bitmask.net/'
@@ -43,9 +43,14 @@ makedepends=(
#'python2-flake8'
#'python2-tox'
#)
-source=("https://github.com/leapcode/$pkgname/archive/$pkgver.tar.gz")
+install=$pkgname.install
+source=(
+ "https://github.com/leapcode/$pkgname/archive/$pkgver.tar.gz"
+ "https://github.com/leapcode/$pkgname/archive/debian/experimental.zip"
+)
validpgpkeys=('BE23FB4A0E9DB36ECB9AB8BE23638BF72C593BC1')
-sha256sums=('7e907adeef60c61378c505d29f69d1cf777495215b356ce7ea3b0dc2b5c70dab')
+sha256sums=('7e907adeef60c61378c505d29f69d1cf777495215b356ce7ea3b0dc2b5c70dab'
+ '3e5678ff608aca5ee034584014e0e4ae8a539c70d453949d322c138ba48a5cea')
prepare() {
# Workaround version acquire fail
@@ -78,9 +83,18 @@ package() {
python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
- install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" AUTHORS\
- CHANGELOG.rst\
- README.rst
+ install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" AUTHORS\
+ CHANGELOG.rst\
+ README.rst
+
+ cd "$srcdir/$pkgname-debian-experimental"
+ install -Dm644 -t "${pkgdir}/usr/share/pixmaps" debian/bitmask.xpm
+ install -Dm644 -t "${pkgdir}/usr/share/applications" debian/bitmask.desktop
+
+ for i in 24x24 32x32 48x48 64x64 128x128 256x256; do
+ install -Dm644 -t "${pkgdir}/usr/share/icons/hicolor/$i/apps/" \
+ debian/icons/hicolor/$i/apps/bitmask.png
+ done
}
# vim:set ts=2 sw=2 et:
diff --git a/bitmask_client.install b/bitmask_client.install
new file mode 100644
index 00000000000..556949362ef
--- /dev/null
+++ b/bitmask_client.install
@@ -0,0 +1,19 @@
+post_install() {
+ echo -n "Updating desktop MIME database..."
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ echo " done."
+
+ echo -n "Updating icon cache..."
+ update-desktop-database -q
+ echo " done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+# vim:set sw=2 sts=2 et: