summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9746492253b4c135e0115a1fb1726f1c88fb997c (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: Simon Tas <simon.tas.st@gmail.com>

pkgname="sauce-finder-git"
_pkgname="sauce-finder"
pkgver=v2.2.3.r0.g97164ee
pkgrel=1
pkgdesc="Python script to find sauce for anime images"
arch=('any')
url="https://gitlab.com/miicat/$_pkgname"
license=('gpl3')
depends=('python-requests' 'python-click' 'python-validators')
provides=('sauce-finder')
source=("${_pkgname}::git+https://gitlab.com/miicat/${_pkgname}")
md5sums=('SKIP')

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

build() {
	cd ${srcdir}/${_pkgname}
    python setup.py build
}

package() {
	cd ${srcdir}/${_pkgname}
    
    python setup.py install --root="${pkgdir}" --optimize=1
}