summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 668a6d16ba3cd743bc810d71dbfcc4b287e3def9 (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
# Contributor: Chris Brannon <cmbrannon79 (at) gmail.com>
# Contributor: joyfulgirl <joyfulgirl (at) archlinux.us>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=edbrowse-git
pkgver=3.8.10.r15.g1c6e8631
pkgrel=1
pkgdesc='A line-oriented editor, browser and mail client.'
arch=('i686' 'x86_64')
url='http://edbrowse.org/'
license=('GPL' 'openssl')
depends=('openssl' 'pcre' 'curl>=7.29.0' 'unixodbc' 'quickjs')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/CMB/edbrowse")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}

build() {
	cd "$srcdir/$pkgname"
	make QUICKJS_INCLUDE=/usr/include/quickjs QUICKJS_LIB=/usr/lib/quickjs
}

package() {
	cd "$srcdir/$pkgname/src"
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -D -m644 ../doc/man-edbrowse-debian.1 $pkgdir/usr/share/man/man1/edbrowse.1
	install -D -m644 ../doc/sample.ebrc ../README $pkgdir/usr/share/doc/${pkgname%-*}
	install -D -m644 ../COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/COPYING
}