makedeb
An extremely low-level wrapper to the MediaWiki API
Viewing /PKGBUILD
.
Click here to go back to the Git tree for python3-simplemediawiki.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: Sergej Pupykin (ARCH) <pupykin.s+arch@gmail.com>
# Contributor: Jakub Klinkovský (ARCH) <j.l.k@gmx.com>
_pkgname=python-simplemediawiki
pkgname=python3-simplemediawiki
pkgver=1.2.0b2
pkgrel=0
pkgdesc='An extremely low-level wrapper to the MediaWiki API'
license=('LGPL')
arch=('all')
url="https://github.com/iliana/python-simplemediawiki"
depends=('python3')
makedepends=('python3-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/iliana/python-simplemediawiki/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('bfa305e953fcea6251fc3edf1caa8987d1f25f2b613b0db82af40862e83adb3574b6f864ed848f88bc17de1063c4f73be80e407688d3b817b6a04f01d352426f')
build() {
cd "$_pkgname-$pkgver"
python3 setup.py build
}
package() {
cd "$_pkgname-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build --install-layout deb
install -Dm644 COPYING "$pkgdir/usr/share/doc/$pkgname/license"
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/authors"
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/readme"
}