blob: 089d02351f6a2c34ee1baaabffc2ff4f754b7bba (
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
|
# Maintainer: siphr <archlinux@techtum.dev>
pkgname=spol
pkgver=0.0.1
pkgrel=1
pkgdesc="Pakistan Sindh Police."
depends=(python python-beautifulsoup4)
arch=(any)
source=("https://github.com/siphr/spol/archive/refs/tags/$pkgver.tar.gz")
url=https://www.techtum.dev/work-spol-220121.html
license=('MIT')
build() {
echo "BUILDING..."
cd "$srcdir/$pkgname-$pkgver/pip/"
python setup.py build
echo -e '#!/bin/sh\n\nexec python -m spol.spol "$@"' > _spol
}
package() {
echo "INSTALLING..."
cd "$srcdir/$pkgname-$pkgver/pip/"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
mkdir -p $pkgdir/usr/bin
mv _spol "$pkgdir/usr/bin/spol"
chmod +x $pkgdir/usr/bin/spol
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
echo 'Finished setting up spol.'
}
md5sums=('SKIP')
|