summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59b7bda2704de3a44e9a792905b72b11def9f0d7 (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
# Maintainer: jason ryan <jasonwryan@gmail.com>
# Contributor: Andrew Kopplin <revrollic@gmail.com>

pkgname=surfraw-git
_gitname="Surfraw"
pkgver=2018.02.03.g9b1b780
pkgrel=2
pkgdesc="Shell Users' Revolutionary Front Rage Against the Web"
arch=('any')
url="https://gitlab.com/surfraw/Surfraw"
license=('custom')
depends=('perl')
makedepends=('git')
install=$pkgname.install
provides=('surfraw')
conflicts=('surfraw')
backup=('etc/xdg/surfraw/conf' 'etc/xdg/surfraw/bookmarks')
source=(git+https://gitlab.com/surfraw/Surfraw.git)
sha1sums=('SKIP')

pkgver() {
    cd "${_gitname}"
    git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}

build() {
    cd "${_gitname}"
    ./prebuild   
    ./configure --prefix=/usr --sysconfdir=/etc --disable-opensearch
    make
}

package() {
    cd "${_gitname}"
    make DESTDIR="$pkgdir" install
    # license
    install -D -m644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING 
}

# vim:set ts=2 sw=2 et: