updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / gfloppy / PKGBUILD
blob84173d5c121db2b1e2cedf38b9fd7c88f47ad543
1 # Maintainer: fs4000 <matthias_dienstbier[at]yahoo[dot]de>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=gfloppy
5 pkgver=2.26.0
6 pkgrel=1
7 pkgdesc="floppy formatter for GNOME"
8 arch=(i686 x86_64)
9 license=('GPL')
10 depends=('gconf' 'libglade')
11 makedepends=('pkgconfig' 'intltool')
12 options=('!libtool' '!emptydirs')
13 url="http://www.gnome.org"
14 install=gfloppy.install
15 source=(http://ftp.gnome.org/pub/gnome/sources/gnome-utils/2.26/gnome-utils-${pkgver}.tar.bz2)
16 md5sums=('667400cfb9bee954028024ac3cf91a09')
18 build() {
19   cd "${srcdir}/gnome-utils-${pkgver}"
20   sed -i 's/GETTEXT_PACKAGE=gnome-utils-2.0/GETTEXT_PACKAGE=gfloppy/' configure
21   ./configure --prefix=/usr \
22         --libexecdir=/usr/lib/gnome-utils \
23         --sysconfdir=/etc \
24         --localstatedir=/var \
25         --disable-static \
26         --disable-hal \
27         --disable-schemas-install \
28         --disable-scrollkeeper \
29         --with-gconf-schema-file-dir=/usr/share/gconf/schemas
30   local i
31   cd ${pkgname}
32   make
33   cd ../po
34   local i
35   for i in *.po
36   do
37     msggrep -N ../gfloppy/\* -N ../gfloppy/src/\* -o $i $i
38   done
39   make
42 package() {
43   local i
44   for i in "${srcdir}/gnome-utils-${pkgver}/"{${pkgname},po}
45   do
46     cd "$i"
47     make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
48   done