summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf38bc0cb7787167a0fbf907b8781704098fe0b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Ho Tuan Kiet <tuankiet65@gmail.com>
# Contributor: Kristian Gunstone <kristian.gunstone except without these words AT pean.org>
# Contributor: Jameson Pugh <imntreal@gmail.com>
# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor: kaptoxic <kaptoxic _at_ yahoo _dot_ com >
# Contributor: Louis des Landes <aur@psykar.com>
# Contributor: dlech
# Contributor: Andreas Harter <aur@andreas-harter.de>
 
pkgname=keebuntu
pkgver=0.6.0
pkgrel=1
pkgdesc="App indicator icon for keepass (for unity, cinnamon & gnome)"
arch=('any')
url="https://github.com/dlech/Keebuntu"
license=('GPL2')
depends=('keepass' 'gtk-sharp-2' 'libappindicator-sharp' 'libappindicator-gtk2'
         'libindicator-gtk2' 'dbus-sharp-glib')
source=("https://github.com/dlech/Keebuntu/archive/debian/${pkgver}.tar.gz")
install=$pkgname.install
sha256sums=('dbd8bfc40c176d987e9ec2e66e311c1851cd29f2d46c379c804380082d30608d')
 
_keepassdir=usr/share/keepass/plugins/appindicator
_icondir=icons/hicolor/256x256/apps
 
build() {
  cd "${srcdir}/Keebuntu-debian-${pkgver}"
  sed -i 's|/usr/lib/keepass2|/usr/share/keepass|' KeePassExe.proj
  sed -i 's|libMagickWand-6.Q16.so|libMagickWand-6.Q16HDRI.so|' ImageMagick/ImageMagick.dll.config
  xbuild /property:Configuration=Release ApplicationIndicator/AppIndicatorPlugin.csproj
}
 
package() {
  cd "${srcdir}/Keebuntu-debian-${pkgver}"
  # Copy stuff across manually
  mkdir -p $pkgdir/$_keepassdir
  mkdir -p $pkgdir/usr/share/$_icondir
  cp ApplicationIndicator/bin/Release/* $pkgdir/$_keepassdir
  cp ApplicationIndicator/Resources/$_icondir/* $pkgdir/usr/share/$_icondir/
  rm $pkgdir/$_keepassdir/KeePass.*
}
 
# vim:set ts=2 sw=2 et: