summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff4bad1137fdbae1a454dc96eff04a684f47e247 (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
# 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.6.3.r3.g64d54f6
pkgrel=1
pkgdesc="A line-oriented editor, browser and mail client."
arch=('i686' 'x86_64')
url="http://edbrowse.org/"
license=('GPL' 'openssl')
groups=()
depends=('js>=2.4' 'openssl' 'pcre' 'curl>=7.17.0' 'readline' 'tidy-html5-git')
makedepends=('git')
provides=('edbrowse')
conflicts=('edbrowse')
replaces=()
backup=()
options=()
install=
source=("$pkgname::git+https://github.com/CMB/edbrowse")
noextract=()
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$pkgname"
  make CFLAGS="-I/usr/include/tidy" all
}

package() {
  cd "$srcdir/$pkgname/src"
  make DESTDIR="$pkgdir" prefix=/usr install
  install -Dm644 ../doc/man-edbrowse-debian.1 $pkgdir/usr/share/man/man1/edbrowse.1
  mkdir -p $pkgdir/usr/share/doc/${pkgname%-*}
  install -Dm644 ../doc/usersguide.html ../doc/sample.ebrc ../README $pkgdir/usr/share/doc/${pkgname%-*}
  install -Dm644 ../COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/COPYING
}