summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c714c1d9c6bc5876f25a78d8c5e426e2d2dfd702 (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
# Maintainer: Vitali64 <vitali64pmemail@protonmail.com>
pkgname=saurch-git
pkgver=r4.36a9cdb
pkgrel=1
pkgdesc="Small AUR Command Helper"
arch=('any')
url="http://vitali64.duckdns.org/?p=utils/saurch.git"
license=('GPL')
depends=('python' 'git')
provides=("saurch")
source=('git+http://vitali64.duckdns.org/git/utils/saurch.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

#build() {
#	cd "$srcdir/${pkgname%-git}"
#	pip install build
#	python -m build
#}

package() {
	cd "$srcdir/${pkgname%-git}"
	python3 setup.py install --root="${pkgdir}/" --optimize=1
}