updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / keepass / PKGBUILD
blobe28d4b8dc9f312786ef4e770d791995dc99c8eda
1 # Maintainer: Kirill "reflexing" Churin <reflexing@reflexing.ru>
2 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
4 pkgname=keepass
5 pkgver=2.18
6 pkgrel=1
7 pkgdesc="KeePass Password Safe, the free, open source, light-weight and easy-to-use password manager."
8 arch=('any')
9 url="http://keepass.info/"
10 license=('GPL2')
11 depends=('mono>=2.6' 'desktop-file-utils' 'xdg-utils')
12 optdepends=('xdotool: if you want to use auto-type.')
13 install=keepass.install
14 source=(http://downloads.sourceforge.net/project/keepass/KeePass%202.x/${pkgver}/KeePass-${pkgver}.zip
15         keepass
16         keepass.1
17         keepass.desktop
18         keepass.xml
19         KeePass.config.xml
20         KeePass_6_256x256x32.png
21         KeePass_7_48x48x32.png
22         KeePass_8_32x32x32.png
23         KeePass_9_16x16x32.png)
25 package() {
26   cd ${srcdir}
27   
28   install -dm755 ${pkgdir}/usr/bin
29   install -dm755 ${pkgdir}/usr/share/keepass/XSL
30   
31   install -Dm755 keepass ${pkgdir}/usr/bin/keepass
32   install -Dm755 KeePass.exe ${pkgdir}/usr/share/keepass/KeePass.exe
33   install -Dm755 KeePass.config.xml ${pkgdir}/usr/share/keepass/KeePass.config.xml
34   install -Dm755 KeePass.exe.config ${pkgdir}/usr/share/keepass/KeePass.exe.config
35   install -Dm755 KeePass.chm ${pkgdir}/usr/share/keepass/KeePass.chm
37   install -m644 XSL/* ${pkgdir}/usr/share/keepass/XSL
38   
39   install -Dm644 keepass.1 ${pkgdir}/usr/share/man/man1/keepass.1
40   
41   # Proper installation of .desktop file
42   desktop-file-install -m 0644 --dir ${pkgdir}/usr/share/applications/ keepass.desktop
43   
44   # Install Icons (got from source package with "icotool -x KeePass.ico")
45   for size in 16 32 48 256; do
46     install -m644 -D \
47     KeePass_*_${size}x${size}x32.png \
48     ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/keepass.png
49   done
50   
51   # Needed for postinst with xdg-utils
52   install -Dm644 keepass.xml ${pkgdir}/usr/share/mime/packages/keepass.xml
55 md5sums=('54e25b1a240ddfdaa1f0af80a79beb17'
56          'daa5d6c01c11cf38c6f5cc207333aa9a'
57          'a2a0dff1ebf0aaf6cbfb6f8566f4a010'
58          '0ff6c4e6b12b77d1954292efcd2e6b97'
59          '1d7545e79e7aa1107a9f78cb46ced251'
60          'ac0f1e104f82d295c27646bfff39fecc'
61          '490859f348e492b5e33739262ff07f00'
62          '5b060d5376e94f6743e787a46f53e9a3'
63          '17044c8d69ad5275a2a57843b19ad89d'
64          '4dfb6d0d6535c6d57ee88a4de7119095')