diff options
Diffstat (limited to 'community/gnome-commander/PKGBUILD')
-rw-r--r-- | community/gnome-commander/PKGBUILD | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/community/gnome-commander/PKGBUILD b/community/gnome-commander/PKGBUILD index 61f935720..f2ef8ee2d 100644 --- a/community/gnome-commander/PKGBUILD +++ b/community/gnome-commander/PKGBUILD @@ -1,43 +1,52 @@ -# $Id: PKGBUILD 99771 2013-10-30 23:36:54Z allan $ -# Maintainer : Ionut Biru <ibiru@archlinux.org> +# $Id: PKGBUILD 103047 2013-12-25 19:18:23Z jlichtblau $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> # Contributor: Roman Kyrylych <roman@archlinux.org> # Contributor: Johannes Sjolund <j.sjolund@gmail.com> pkgname=gnome-commander -pkgver=1.2.8.15 +pkgver=1.2.8.16 pkgrel=1 -pkgdesc="A graphical two-pane filemanager for Gnome" +pkgdesc='Graphical two-pane filemanager for Gnome' arch=('i686' 'x86_64' 'mips64el') -url="http://www.nongnu.org/gcmd/" +url='http://www.nongnu.org/gcmd/' license=('GPL') depends=('libgnomeui' 'gnome-vfs' 'gconf' 'python2' 'libsm') -makedepends=('perlxml' 'gnome-doc-utils>=0.20.1' 'intltool') -install=gnome-commander.install +makedepends=('perlxml' 'gnome-doc-utils' 'intltool') +install=$pkgname.install source=(ftp://ftp.gnome.org/pub/GNOME/sources/gnome-commander/1.2/$pkgname-$pkgver.tar.xz - gnome-commander-1.2.8.15-build.patch) -sha256sums=('d2feecf215db3e0faeb873c559087c2ad9af0a5aac26e2b1b32b28be939da37f' - '856e9c1a17acbb97772ed93d01d81746098e03f5c06375cc976fc784a0011088') + gnome-commander-1.2.8.15-build.patch) +sha256sums=('84d653fab2eaec233b6d899f339099c2fa2d2d5cbdb7a33bd7022c34ed901347' + '856e9c1a17acbb97772ed93d01d81746098e03f5c06375cc976fc784a0011088') -build() { - cd "$srcdir/$pkgname-$pkgver" +# mips64el patch +prepare() { + cd "$pkgname-$pkgver" patch -Np1 -i ${srcdir}/gnome-commander-1.2.8.15-build.patch - # python2 fix - for file in doc/*/gnome-commander.xml; do - sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file +} + +build() { + cd "$pkgname-$pkgver" + + # Python 2 fix + for f in doc/*/gnome-commander.xml; do + sed -i 's:env python:env python2:' "$f" done ./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc \ - --localstatedir=/var --disable-scrollkeeper --enable-python - + --localstatedir=/var --disable-scrollkeeper --enable-python make } package() { - cd "$srcdir/$pkgname-$pkgver" - make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install + cd "$pkgname-$pkgver" - mkdir -p "$pkgdir"/usr/share/gconf/schemas - gconf-merge-schema "$pkgdir"/usr/share/gconf/schemas/$pkgname.schemas \ - --domain $pkgname "$pkgdir"/etc/gconf/schemas/*.schemas - rm -rf "$pkgdir"/etc/gconf/schemas/ + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install + install -d "$pkgdir/usr/share/gconf/schemas" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas" \ + --domain "$pkgname" "$pkgdir/etc/gconf/schemas/"*.schemas + rm -rf "$pkgdir/etc/gconf/schemas/" } + +# vim:set ts=2 sw=2 et: |