updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sleutel / PKGBUILD
blobae5bbd33b6c494da88832b29f9d2cd5e314cd9bb
1 # Contributor: Filipp Andjelo <scorp@mauilueberfall.de>
3 pkgname=sleutel
4 pkgver=1.0
5 pkgrel=2
6 pkgdesc="Password manager based on Eclipse RCP"
7 arch=('i686' 'x86_64')
8 url="http://sleutel.sourceforge.net"
9 depends=('java-environment>=6' 'gtk2>=2.16.1')
10 install=sleutel.install
11 license=("Apache")
12 if [ "$CARCH" = "x86_64" ]; then
13 source=(http://downloads.sourceforge.net/project/sleutel/sleutel/${pkgver}/sleutel-${pkgver}-linux.gtk.x86_64.tgz
14         sleutel.desktop
15         sleutel.sh)
16 md5sums=('03b88020a3378c50872ab024cfb83f22'
17          '5e3559906a4d74c3919cf0e8b3aa130f'
18          '085d09d22326ef9a882fb8353d49c085')
19 else
20 source=(http://downloads.sourceforge.net/project/sleutel/sleutel/${pkgver}/sleutel-${pkgver}-linux.gtk.x86.tgz
21         sleutel.desktop
22         sleutel.sh)
23 md5sums=('d0158acb305a2fc69ec6a566a1db9392'
24          '5e3559906a4d74c3919cf0e8b3aa130f'
25          '085d09d22326ef9a882fb8353d49c085')
28 build() {
29   cd "${srcdir}/sleutel" || return 1
31   # install eclipse
32   install -m755 -d "${pkgdir}/usr/share"
33   mv "${srcdir}/sleutel" "${pkgdir}/usr/share/" || return 1
35   # install misc
36   mkdir -p ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications \
37     ${pkgdir}/usr/share/icons/hicolor/48x48/apps || return 1
38   install -m755 "${srcdir}/sleutel.sh" "${pkgdir}/usr/bin/sleutel" || return 1
39   install -m644 "${srcdir}/sleutel.desktop" "${pkgdir}/usr/share/applications/" || return 1
40   ln -s /usr/share/sleutel/icon.xpm \
41     "${pkgdir}/usr/share/icons/hicolor/48x48/apps/sleutel.xpm" || return 1