blob: bf00dbe42a56fb6513f4b58bb120e50abdbbdc70 (
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
33
34
35
36
|
# Maintainer: siphr <archlinux@techtum.dev>
_pypkgname=psg
pkgname=pksg
pkgver=0.0.5
pkgrel=1
pkgdesc="Pakistan SUI Gass Bill and Tariff."
depends=(python python-beautifulsoup4)
arch=(any)
source=("https://github.com/siphr/psg/archive/refs/tags/$pkgver.tar.gz")
url=https://www.techtum.dev/work-psg-220228.html
license=('MIT')
build() {
echo "BUILDING..."
cd "$srcdir/$_pypkgname-$pkgver/pip/"
python setup.py build
echo -e '#!/bin/sh\n\nexec python -m psg.psg "$@"' > _psg
}
package() {
echo "INSTALLING..."
cd "$srcdir/$_pypkgname-$pkgver/pip/"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
mkdir -p $pkgdir/usr/bin
mv _psg "$pkgdir/usr/bin/pksg"
chmod +x $pkgdir/usr/bin/pksg
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
echo 'Finished setting up pkgs.'
}
md5sums=('80d27050b2074843618825e5a462fde8')
|