From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/gtkdialog/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ community/gtkdialog/gtkdialog.install | 22 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 community/gtkdialog/PKGBUILD create mode 100644 community/gtkdialog/gtkdialog.install (limited to 'community/gtkdialog') diff --git a/community/gtkdialog/PKGBUILD b/community/gtkdialog/PKGBUILD new file mode 100644 index 000000000..98398f1cf --- /dev/null +++ b/community/gtkdialog/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 83201 2013-01-28 10:07:07Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: dojo + +pkgname=gtkdialog +pkgver=0.8.3 +pkgrel=1 +pkgdesc="Gtkdialog is a small utility for fast and easy GUI building." +arch=('i686' 'x86_64') +#url="http://linux.pte.hu/~pipas/gtkdialog/" +url="http://code.google.com/p/gtkdialog/" +license=("GPL") +makedepends=('pkgconfig') +depends=('gtk2' 'libglade') +install=gtkdialog.install +options=('zipman') +source=(http://gtkdialog.googlecode.com/files/gtkdialog-$pkgver.tar.gz) +md5sums=('f8d2a2b912bcd5aa7da60984c19bc493') + +build() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir UPDATE_ICON_CACHE=true install + rm -f $pkgdir/usr/share/info/dir + mkdir -p $pkgdir/usr/share/doc/$pkgname + cp -a examples $pkgdir/usr/share/doc/$pkgname/examples +} diff --git a/community/gtkdialog/gtkdialog.install b/community/gtkdialog/gtkdialog.install new file mode 100644 index 000000000..ef3856eec --- /dev/null +++ b/community/gtkdialog/gtkdialog.install @@ -0,0 +1,22 @@ +infodir=/usr/share/info +filelist=(gtkdialog.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done + + gtk-update-icon-cache -f -t usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} -- cgit v1.2.3-54-g00ecf