updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / seahorse-plugins-git / PKGBUILD
blob90d50cd8365d0a7be0f58f04fc6cd923dbd14377
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 _pkgname=seahorse-plugins
3 pkgname=$_pkgname-git
4 pkgver=20120101
5 pkgrel=1
6 pkgdesc="Plugins and extensions to third party software to provide encryption capability"
7 arch=('i686' 'x86_64')
8 url="http://live.gnome.org/Seahorse/Plugins"
9 license=('GPL')
10 depends=('gconf' 'libcryptui' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
11 makedepends=('git' 'gnome-common' 'intltool' 'gnome-doc-utils')
12 options=('!emptydirs' '!libtool')
13 install=$_pkgname.install
15 _gitroot="git://git.gnome.org/seahorse-plugins"
16 _gitname="seahorse-plugins"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
40   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
41                --disable-static --disable-schemas-install --disable-scrollkeeper \
42                --disable-update-mime-database --disable-applet --disable-nautilus \
43                --with-gconf-schema-file-dir=/usr/share/gconf/schemas --with-gtk=3.0
44   make
47 package() {
48   cd "$srcdir/$_gitname-build"
50   make DESTDIR="$pkgdir/" install
52   # Remove seahorse-tool (now it's in seahorse-nautilus package)
53   rm "$pkgdir"/usr/bin/seahorse-tool \
54      "$pkgdir"/usr/share/applications/seahorse-pgp-{encrypted,keys,signature}.desktop \
55      "$pkgdir"/usr/share/man/man1/seahorse-tool.1 \
56      "$pkgdir"/usr/share/seahorse-plugins/ui/seahorse-{multi-encrypt,notify,progress}.xml