From 103f1856ad54ea7c4fa30bb2a9235a14fb553393 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 16 May 2015 00:32:51 -0500 Subject: pyrenamer-0.6.0-9: rebuild --- pcr/pyrenamer/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ pcr/pyrenamer/pyrenamer.install | 20 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 pcr/pyrenamer/PKGBUILD create mode 100644 pcr/pyrenamer/pyrenamer.install (limited to 'pcr/pyrenamer') diff --git a/pcr/pyrenamer/PKGBUILD b/pcr/pyrenamer/PKGBUILD new file mode 100644 index 000000000..f202afee7 --- /dev/null +++ b/pcr/pyrenamer/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor (Arch): boenki +# Contributor (Arch): Arkham +# Contributor (Arch): Christoph Zeiler +# Contributor (Arch): Marcin Karpezo +# Contributor (Arch): Lucas Salies Brum +# Contributor (Arch): max.bra +# Maintainer : Omar Vega Ramos + +pkgname=pyrenamer +pkgver=0.6.0 +pkgrel=9 +pkgdesc="Mass file renamer" +arch=('any') +url="http://www.infinicode.org" +license=('GPL2') +depends=('python2-gconf') +makedepends=('perl-xml-parser') +optdepends=('hachoir-metadata: rename multimedia files metadata' + 'python2-eyed3: rename MP3 files metadata') +install=$pkgname.install +source=(http://ftp.de.debian.org/debian/pool/main/p/pyrenamer/pyrenamer_0.6.0.orig.tar.gz) +md5sums=('a7159f803cd919ab76f17789189c577b') + +prepare() { + cd $pkgname-$pkgver + sed -i 's|python python2 python2.5|python2 python2.5|' configure + sed -i 's|PYTHON=python|PYTHON=python2|' py-compile + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' src/$pkgname +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/pcr/pyrenamer/pyrenamer.install b/pcr/pyrenamer/pyrenamer.install new file mode 100644 index 000000000..3604d0bc0 --- /dev/null +++ b/pcr/pyrenamer/pyrenamer.install @@ -0,0 +1,20 @@ +post_install() { + gconfpkg --install pyrenamer + post_remove $1 +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + gconfpkg --uninstall pyrenamer +} + +post_remove() { + update-desktop-database -q +} -- cgit v1.2.3-54-g00ecf