diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-02-20 02:30:34 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-02-20 02:30:34 -0200 |
commit | 7ac741bdd76fbc826ac472c57fff345409d496a0 (patch) | |
tree | 1449d17e471ddf8746ef91c27daa360b43fa8b3c /pcr/xombrero/PKGBUILD | |
parent | cc6525775effd1da30e8d8a8274a4db79c2d9bec (diff) | |
download | abslibre-7ac741bdd76fbc826ac472c57fff345409d496a0.tar.gz abslibre-7ac741bdd76fbc826ac472c57fff345409d496a0.tar.bz2 abslibre-7ac741bdd76fbc826ac472c57fff345409d496a0.zip |
xombrero: add new package to [pcr]
Diffstat (limited to 'pcr/xombrero/PKGBUILD')
-rw-r--r-- | pcr/xombrero/PKGBUILD | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/pcr/xombrero/PKGBUILD b/pcr/xombrero/PKGBUILD new file mode 100644 index 000000000..d2257a643 --- /dev/null +++ b/pcr/xombrero/PKGBUILD @@ -0,0 +1,86 @@ +# Maintainer (Arch): Kyle Keen <keenerd@gmail.com> + +pkgbase=xombrero +#pkgname=('xombrero' 'xombrero3') +pkgname=xombrero +#pkgname=xombrero3 # uncomment to package the gtk3 version instead +pkgver=1.6.3 +pkgrel=2 +pkgdesc="A minimalists web browser, vi-like but with traditional web browser behavior." +arch=('i686' 'x86_64') +url="https://opensource.conformal.com/wiki/xombrero" +_watch="https://opensource.conformal.com/snapshots/xombrero/" +license=('custom:ISC') +depends=('webkitgtk2' 'libbsd' 'desktop-file-utils') +if [[ "$pkgname" == "xombrero3" ]]; then + depends=('webkitgtk3' 'libbsd' 'desktop-file-utils') +fi +install=$pkgbase.install +replaces=('xxxterm') +conflicts=('xxxterm') +options=('!emptydirs') +source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgbase-$pkgver.tgz \ + LICENSE) +md5sums=('11248a0f40542265022e8dfe692644da' + 'f3eeb6e8b70a3dcccb8ee57daf584c9e') + +build() { + cd "$srcdir/$pkgbase-$pkgver" + # no spam + sed -i 's|https://www.cyphertite.com|https://archlinux.org|' xombrero.{c,conf,h} + # relocations + sed -i 's|/etc/ssl/cert.pem|/etc/ssl/certs/ca-certificates.crt|' xombrero.conf + #sed -i 's|/usr/local/share/xombrero/style.css|/usr/share/xombrero/style.css|' xombrero.conf + sed -i 's|/usr/local/share/|/usr/share/|' {unix.c,xombrero.conf,xombrero.h} + cd .. + + mkdir -p build-gtk{2,3} + if [[ "$pkgname" == "xombrero" ]]; then + cp -R "$srcdir/$pkgbase-$pkgver" build-gtk2 + pushd "build-gtk2/$pkgbase-$pkgver" + make PREFIX="/usr" -C linux GTK_VERSION=gtk2 + popd + fi + + if [[ "$pkgname" == "xombrero3" ]]; then + cp -R "$srcdir/$pkgbase-$pkgver" build-gtk3 + pushd "build-gtk3/$pkgbase-$pkgver" + make PREFIX="/usr" -C linux GTK_VERSION=gtk3 + popd + fi +} + +# non-split aur compatibility function (remove for real split pkg) +package() { + if [[ "$pkgname" == "xombrero" ]]; then + package_xombrero + elif [[ "$pkgname" == "xombrero3" ]]; then + package_xombrero3 + fi +} + +package_xombrero() { + depends=('webkitgtk2' 'libbsd' 'desktop-file-utils') + conflicts=('xxxterm' 'xombrero3') + + cd "$srcdir/build-gtk2/$pkgbase-$pkgver" + mkdir -p "$pkgdir/usr/share/applications/" # buggy makefile + make PREFIX="/usr" DESTDIR="$pkgdir" install -C linux GTK_VERSION=gtk2 + install -Dm644 xombrero.conf "$pkgdir/etc/skel/.xombrero.conf" + install -Dm644 xombrero.desktop "$pkgdir/usr/share/applications/xombrero.desktop" + install -Dm755 config-checker.pl "$pkgdir/usr/bin/config-checker.pl" + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_xombrero3() { + depends=('webkitgtk3' 'libbsd' 'desktop-file-utils') + conflicts=('xombrero') + + cd "$srcdir/build-gtk3/$pkgbase-$pkgver" + mkdir -p "$pkgdir/usr/share/applications/" # buggy makefile + make PREFIX="/usr" DESTDIR="$pkgdir" install -C linux GTK_VERSION=gtk3 + install -Dm644 xombrero.conf "$pkgdir/etc/skel/.xombrero.conf" + install -Dm644 xombrero.desktop "$pkgdir/usr/share/applications/xombrero.desktop" + install -Dm755 config-checker.pl "$pkgdir/usr/bin/config-checker.pl" + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |