summaryrefslogtreecommitdiff
path: root/community-testing
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-28 23:14:32 +0000
committerroot <root@rshg054.dnsready.net>2011-09-28 23:14:32 +0000
commitf8db5d1487e8e0ceeb97a396e357c1540a047ed8 (patch)
tree7ad8dee5bda1fe535c9139770dc7316f9b780818 /community-testing
parentccb9d72bbf1ee4f7a54113eac76a16b0b5014869 (diff)
Wed Sep 28 23:14:32 UTC 2011
Diffstat (limited to 'community-testing')
-rw-r--r--community-testing/gtkdialog/PKGBUILD32
-rw-r--r--community-testing/gtkdialog/gtkdialog.install20
2 files changed, 52 insertions, 0 deletions
diff --git a/community-testing/gtkdialog/PKGBUILD b/community-testing/gtkdialog/PKGBUILD
new file mode 100644
index 000000000..65b0dee6a
--- /dev/null
+++ b/community-testing/gtkdialog/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 55973 2011-09-27 21:01:09Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: dojo <joerg.doll[at]gmx.de>
+
+pkgname=gtkdialog
+pkgver=0.8.0
+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=('a1f0c459a610ac3892342efbec27d93d')
+
+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 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-testing/gtkdialog/gtkdialog.install b/community-testing/gtkdialog/gtkdialog.install
new file mode 100644
index 000000000..f74f0882b
--- /dev/null
+++ b/community-testing/gtkdialog/gtkdialog.install
@@ -0,0 +1,20 @@
+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
+}
+
+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
+}