summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 925eb4bbd25fca00fd6258d7a4d20c8dc6becbf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Splex
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: Jérémie Astor <astor.jeremie@wanadoo.fr>
# Contributor: Cyrille Laloy <dev at tukoz dot it>

_pkgname=xombrero
pkgname=xombrero-gtk2-git
pkgver=1.6.4.7.g28d1406
pkgrel=1
pkgdesc="Minimalist web browser - gtk2 version"
arch=('i686' 'x86_64')
url="https://github.com/conformal/xombrero/wiki"
license=('custom:ISC')
depends=('webkitgtk2' 'libbsd' 'desktop-file-utils')
makedepends=('git')
provides=('xombrero')
conflicts=('xxxterm' 'xombrero' 'xombrero3' 'xombrero-git')
source=('git+https://github.com/conformal/xombrero.git'
        'LICENSE')
md5sums=('SKIP'
         'f05366cfaed5bbc58bff53dff5734598')


pkgver() {
	cd "$srcdir/$_pkgname/"
	git describe --always | sed -e 's|-|.|g' -e 's|XOMBRERO_||' -e 's|_|.|g'
}

prepare() {
	cd "$srcdir/$_pkgname/"
	sed -i 's|/etc/ssl/cert.pem|/etc/ssl/certs/ca-certificates.crt|' xombrero.conf
	sed -i 's|https://www.cyphertite.com|http://archlinux.org|' xombrero.{c,conf,h}
	sed -i 's|/usr/local|/usr|' xombrero.{h,conf}
	cd "linux"
	sed -i 's|LIBS= gtk+-2.0|& javascriptcoregtk-1.0|' Makefile
	sed -i 's/gnutls/& libbsd/' Makefile
}

build() {
	cd "$srcdir/$_pkgname/"
	make PREFIX="/usr" -C linux GTK_VERSION=gtk2
}

package() {
	cd "$srcdir/$_pkgname/"
	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"
}