3 апр. 2011 г.

Transmission remote gtk PKGBUILD

Project is located at:
http://code.google.com/p/transmission-remote-gtk/

My PKGBUILD differents a bit from existing in AUR so it will be a hard decision which to choose :P.

Files under cut

PKGBUILD itself


pkgname=('transmission-remote-gtk')
pkgver=0.3
pkgrel=1
pkgdesc="GTK application for remote management of the Transmission BitTorrent client via its RPC interface"
arch=('i686' 'x86_64')
url="http://code.google.com/p/transmission-remote-gtk/"
license=('GPL2')
depends=('hicolor-icon-theme' 'json-glib' 'libproxy' 'libunique' 'libnotify' 'gconf' 'curl')
makedepends=()
provides=('transmission-remote-gtk')
conflicts=('transmission-remote-gtk')
source=(http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
md5sums=('3755d69c5e165b696c1eefeac5df3840')
install=transmission-remote-gtk.install

build() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install 

  # move schemas for gconf from /etc/ to /usr/share (for gconfpkg in install script)
  mv ${startdir}/pkg/etc/gconf/ ${startdir}/pkg/usr/share/
  rm -rf ${startdir}/pkg/etc/
}

.install file


# arg 1:  the new package version
post_install() {
    gconfpkg --install transmission-remote-gtk
    gtk-update-icon-cache -f /usr/share/icons/hicolor
}

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
    gconfpkg --install transmission-remote-gtk
    gtk-update-icon-cache -f /usr/share/icons/hicolor
}

# arg 1:  the old package version
pre_remove() {
    gconfpkg --uninstall transmission-remote-gtk
}

# arg 1:  the old package version
post_remove() {
    gtk-update-icon-cache -f /usr/share/icons/hicolor
}

Комментариев нет :

Отправить комментарий