summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7386a5d614a2687c01cea8a9891add971f35f365 (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
# Maintainer: Alejandro Barocio A. <abarocio80@gmail.com>
pkgbase=searchweb
pkgname=searchweb-git
pkgver=0.0.r6.gb779a55
pkgrel=1
epoch=
pkgdesc="A web search cache with menu and tagged history."
arch=(any)
url="https://gitlab.com/abarocio80/searchweb.git"
license=('GPL3')
groups=()
depends=()
makedepends=('git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(git+"$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "searchweb"
	( set -o pipefail
	  git describe --long 2>/dev/null | sed 's/^[^0-9]*//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
	  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

build() {
	cd "searchweb"
	make
}

package() {
	cd "searchweb"
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}