updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / xxxterm / PKGBUILD
blob9fcdce65a5561cb3f0112da64e69176b07bbf90a
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=xxxterm
4 pkgver=1.10.0
5 pkgrel=1
6 pkgdesc="A minimalists web browser, vi-like while maintaining traditional web browser behavior."
7 arch=('i686' 'x86_64')
8 url="http://opensource.conformal.com/wiki/XXXTerm"
9 license=('custom:ISC')
10 depends=('libwebkit' 'gtk2' 'libbsd')
11 optdepends=()
12 source=(http://opensource.conformal.com/snapshots/$pkgname/$pkgname-$pkgver.tgz \
13         LICENSE)
14 md5sums=('4645c5519586a2db5f2bbd9e53ed27ce'
15          'f3eeb6e8b70a3dcccb8ee57daf584c9e')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   sed -i 's|LIBS= gtk+-2.0|& javascriptcoregtk-1.0|' linux/Makefile
20   sed -i 's|/etc/ssl/cert.pem|/etc/ssl/certs/ca-certificates.crt|' xxxterm.conf
21   # no spam
22   sed -i 's|https://www.cyphertite.com|https://archlinux.org|' xxxterm.{c,conf}
23   sed -i 's|/usr/local/share/xxxterm/|/usr/share/xxxterm/|' xxxterm.{c,conf}
24   cd linux
25   sed -i 's/gnutls/& libbsd/' Makefile
26   make PREFIX="/usr"
29 package() {
30   cd "$srcdir/$pkgname-$pkgver/linux"
31   make PREFIX="/usr" DESTDIR="$pkgdir" install
32   cd ..
33   install -Dm644 xxxterm.conf "$pkgdir/etc/skel/xxxterm.conf"
34   install -Dm644 xxxterm.desktop "$pkgdir/usr/share/applications/xxxterm.desktop"
35   cd ../..
36   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"