summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD40
-rw-r--r--gtkdialog.install22
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..677f01b61bf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = gtkdialog-svn
+ pkgdesc = Gtkdialog is a small utility for fast and easy GUI building (SVN)
+ pkgver = 514
+ pkgrel = 7
+ url = https://code.google.com/p/gtkdialog
+ install = gtkdialog.install
+ arch = i686
+ arch = x86_64
+ arch = arm
+ license = GPL
+ makedepends = subversion
+ makedepends = automake
+ makedepends = bison
+ makedepends = flex
+ depends = libglade
+ depends = vte
+ optdepends = gtkdialog-examples: sample projects - pfeme, pfontview, playmusic
+ provides = gtkdialog
+ conflicts = gtkdialog
+
+pkgname = gtkdialog-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..090f141f611
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: OS Hazard <oshazard+aur@gmail.com>
+pkgname=gtkdialog-svn
+pkgver=514
+pkgrel=7
+pkgdesc="Gtkdialog is a small utility for fast and easy GUI building (SVN)"
+arch=('i686' 'x86_64' 'arm')
+url="https://code.google.com/p/gtkdialog"
+license=('GPL')
+depends=('libglade' 'vte')
+makedepends=('subversion' 'automake' 'bison' 'flex')
+optdepends=('gtkdialog-examples: sample projects - pfeme, pfontview, playmusic')
+provides=('gtkdialog')
+conflicts=('gtkdialog')
+install=gtkdialog.install
+
+#_svntrunk=http://gtkdialog.googlecode.com/svn/trunk
+_svntrunk=https://github.com/oshazard/gtkdialog
+_svnmod=gtkdialog
+
+build() {
+ cd "$srcdir"
+ svn checkout $_svntrunk --config-dir ./ $_svnmod
+ msg "SVN checkout done or server timeout"
+ cd $_svnmod/trunk
+
+ msg "Starting configure..."
+ ./autogen.sh --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
+
+ msg "Running make..."
+ make
+}
+
+package() {
+ cd $_svnmod/trunk
+ 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/gtkdialog.install b/gtkdialog.install
new file mode 100644
index 00000000000..ef3856eec53
--- /dev/null
+++ b/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
+}