summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ee140d349573c1e4ae7b89f0d56423e7d38d3cc (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
# Maintainer: Tobias Frisch <thejackimonster@gmail.com>

_pkgname=yml2
pkgname=$_pkgname-git
pkgver=2.7.1
pkgrel=1
pkgdesc="A tool written in Python to convert yml to xml"
arch=('any')
url='https://pypi.org/project/yml2'
license=('GPL2')
makedepends=('git' 'python')
depends=('python-lxml')
provides=('yml2')
source=("git+https://gitea.pep.foundation/fdik/yml2.git")
md5sums=('SKIP')
conflicts=('yml2-hg')

pkgver() {
	cd "$srcdir/$_pkgname"
	git tag | sort -V -r | head -n1
}

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

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