summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYosef Or Boczko2015-06-09 11:57:44 +0300
committerYosef Or Boczko2015-06-09 11:57:44 +0300
commitbd0910b4b490592105457121844f815bb2638421 (patch)
treeb098d7c1728bc8be7fbe764dd60ef5a4a957389e
downloadaur-bd0910b4b490592105457121844f815bb2638421.tar.gz
Initial import
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD41
-rw-r--r--devhelp.install18
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7a8035f1ad0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = devhelp-git
+ pkgdesc = API documentation browser for GNOME
+ pkgver = 3.16.1.29.g321170c
+ pkgrel = 1
+ url = https://wiki.gnome.org/Apps/Devhelp
+ install = devhelp.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = intltool
+ makedepends = python
+ makedepends = gnome-common
+ depends = webkit2gtk
+ depends = hicolor-icon-theme
+ depends = gtk3
+ depends = glib2
+ provides = devhelp=3.16.2
+ conflicts = devhelp
+ options = !libtool
+ options = !emptydirs
+ source = git://git.gnome.org/devhelp
+ sha256sums = SKIP
+
+pkgname = devhelp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..80d31997773
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Yosef Or Boczko <yoseforb@gnome.org>
+
+_pkgname=devhelp
+pkgname=$_pkgname-git
+pkgver=3.16.1.29.g321170c
+pkgrel=1
+_realver=3.16.2
+pkgdesc="API documentation browser for GNOME"
+arch=(i686 x86_64)
+license=('GPL')
+url="https://wiki.gnome.org/Apps/Devhelp"
+depends=('webkit2gtk' 'hicolor-icon-theme' "gtk3" "glib2")
+makedepends=('git' 'intltool' 'python' 'gnome-common')
+options=('!libtool' '!emptydirs')
+install=devhelp.install
+provides=("${_pkgname}=${_realver}")
+conflicts=("${_pkgname}")
+replace=("${_pkgname}")
+source=('git://git.gnome.org/devhelp')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --always | sed 's|-|.|g'
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ ./autogen.sh --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --disable-static
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/devhelp.install b/devhelp.install
new file mode 100644
index 00000000000..25beb33b2da
--- /dev/null
+++ b/devhelp.install
@@ -0,0 +1,18 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+pre_upgrade() {
+ if (( $(vercmp $2 3.8.0) < 0 )); then
+ gconfpkg --uninstall devhelp
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}