summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca82f243faf0c9680a56e7098976bf0a7e88c1f0 (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
# Maintainer: FichteFoll <fichtefoll2@googlemail.com>
# Contributor: Nafis <mnabid.25@outlook.com>

pkgname=anitopy-git
_pkgname=${pkgname%-git}
pkgver=2.1.1.r18.1a15190
pkgrel=2
pkgdesc="Anime video filename parser in Python, based on Anitomy"
arch=('any')
url="https://github.com/igorcmoura/anitopy"
license=('MPL2')
depends=('python')
makedepends=('git' 'python-setuptools')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
md5sums=('SKIP')

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

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