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