summaryrefslogtreecommitdiff
path: root/community/gpg-crypter/PKGBUILD
blob: cb313d0f96fbd8a8b61e9c4662037d7436471070 (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
# $Id: PKGBUILD 67947 2012-03-16 11:29:44Z giovanni $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: lp76 <l.peduto@gmail.com>

pkgname=gpg-crypter
pkgver=0.3.5
pkgrel=5
pkgdesc="A graphical front-end to GnuPG(GPG) using the GTK2 toolkit and libgpgme"
arch=('i686' 'x86_64' 'mips64el')
url="http://gpg-crypter.sourceforge.net/"
license=('GPL')
depends=('gtk2' 'gpgme')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
        $pkgname.desktop)
md5sums=('be33140ae205b8a3f37217c1c2c0737a'
         'a2a226ff44eb02cdab7bee46864dea6d')

build() {
  cd ${srcdir}/$pkgname-$pkgver

  export CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install

# icon
  install -Dm644 ${srcdir}/$pkgname-$pkgver/pixmaps/$pkgname.png \
    ${pkgdir}/usr/share/pixmaps/$pkgname.png

# .desktop file
  install -Dm644 ${srcdir}/$pkgname.desktop \
    ${pkgdir}/usr/share/applications/$pkgname.desktop

# delete unneeded icon
  rm -rf ${pkgdir}/usr/share/$pkgname
}