diff options
author | dvorapa | 2021-06-14 17:31:43 +0200 |
---|---|---|
committer | dvorapa | 2021-06-14 17:31:43 +0200 |
commit | 0378258c5467e1ea792bf48faa81cd67acbd3ac2 (patch) | |
tree | 1d411bafe5e48843ffd2a5fa86427c97705ee75e /PKGBUILD | |
download | aur-0378258c5467e1ea792bf48faa81cd67acbd3ac2.tar.gz |
new package
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..c223716c98fc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Pavel Dvorak <dvorapa~seznam~cz> + +pkgname=python-mwparserfromhell +pkgver=0.6.2 +pkgrel=1 +pkgdesc="Python package that provides an easy-to-use and outrageously powerful parser for MediaWiki wikicode." +arch=(any) +url=https://github.com/earwig/mwparserfromhell +license=(MIT) +makedepends=(python python-setuptools) +source=("https://files.pythonhosted.org/packages/source/m/mwparserfromhell/mwparserfromhell-$pkgver.tar.gz") +sha256sums=(d3f74c0101f81ff73c61985b67f2e7048a30dc5f6a578ea1544e69133988d874) + +build() { + cd "$srcdir/mwparserfromhell-$pkgver" + python setup.py build +} + +package() { + depends=(python) + conflicts=(python-mwparserfromhell-git) + + cd "$srcdir/mwparserfromhell-$pkgver" + python setup.py install --optimize=1 --root="$pkgdir/" --skip-build + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |