summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2015-06-09 12:04:16 +0200
committerMaxime Gauduin2015-06-09 12:04:16 +0200
commit72917bc29f0d5109ab895a9e592f2fe3f7cc5932 (patch)
tree3000ee96505c665a26a8167a25de8ac7acb31576
downloadaur-72917bc29f0d5109ab895a9e592f2fe3f7cc5932.tar.gz
Initial import
-rw-r--r--.SRCINFO34
-rw-r--r--MKPKG6
-rw-r--r--PKGBUILD52
-rw-r--r--midori.install14
4 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..34f30deba76
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = midori-granite-bzr
+ pkgdesc = A lightweight, fast, and free web browser
+ pkgver = r6929
+ pkgrel = 1
+ url = http://midori-browser.org/
+ install = midori.install
+ arch = i686
+ arch = x86_64
+ groups = pantheon-unstable
+ license = LGPL2.1
+ makedepends = bzr
+ makedepends = cmake
+ makedepends = intltool
+ makedepends = librsvg
+ makedepends = ninja
+ makedepends = vala
+ depends = gcr
+ depends = granite-bzr
+ depends = libnotify
+ depends = libxss
+ depends = libzeitgeist
+ depends = webkitgtk
+ depends = zeitgeist
+ optdepends = gst-plugins-base: HTML5 OGG videos support
+ optdepends = gst-plugins-good: HTML5 H264 and WebM videos support
+ optdepends = gst-libav: HTML5 H264 videos support
+ provides = midori
+ conflicts = midori
+ options = !emptydirs
+ source = bzr+lp:midori
+ sha256sums = SKIP
+
+pkgname = midori-granite-bzr
+
diff --git a/MKPKG b/MKPKG
new file mode 100644
index 00000000000..a108d60561a
--- /dev/null
+++ b/MKPKG
@@ -0,0 +1,6 @@
+pkgname=('midori-granite-bzr')
+builddeps=('granite-bzr')
+
+check_bzr $packagedir/$pkgname/${pkgname%%-*}
+
+# vim: ts=2 sw=2 et:
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..450e0a9e568
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+
+pkgname=midori-granite-bzr
+pkgver=r6929
+pkgrel=1
+pkgdesc='A lightweight, fast, and free web browser'
+arch=('i686' 'x86_64')
+url='http://midori-browser.org/'
+license=('LGPL2.1')
+groups=('pantheon-unstable')
+depends=('gcr' 'granite-bzr' 'libnotify' 'libxss' 'libzeitgeist' 'webkitgtk'
+ 'zeitgeist')
+makedepends=('bzr' 'cmake' 'intltool' 'librsvg' 'ninja' 'vala')
+optdepends=('gst-plugins-base: HTML5 OGG videos support'
+ 'gst-plugins-good: HTML5 H264 and WebM videos support'
+ 'gst-libav: HTML5 H264 videos support')
+provides=('midori')
+conflicts=('midori')
+options=('!emptydirs')
+install='midori.install'
+source=('bzr+lp:midori')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd midori
+
+ echo "r$(bzr revno)"
+}
+
+build() {
+ cd midori
+
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+ -DUSE_GRANITE='TRUE' \
+ -DUSE_GTK3='TRUE' \
+ -G Ninja
+ ninja
+}
+
+package() {
+ cd midori/build
+
+ DESTDIR="${pkgdir}" ninja install
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/midori.install b/midori.install
new file mode 100644
index 00000000000..dc2628ff39d
--- /dev/null
+++ b/midori.install
@@ -0,0 +1,14 @@
+post_install() {
+ gtk-update-icon-cache -ftq /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+
+# vim: ts=2 sw=2 et: