blob: c913b0295b0b6f148cd72c67a0907d40653e42e1 (
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=pyfrx
pkgver=0.0.7
pkgrel=1
pkgdesc="Forex Rates and Conversions."
depends=(python python-beautifulsoup4)
arch=(any)
source=("https://github.com/siphr/pyfrx/archive/refs/tags/$pkgver.tar.gz")
url=https://www.techtum.dev/work-pyfrx-220105.html
license=('MIT')
build() {
echo "BUILDING..."
cd "$srcdir/$pkgname-$pkgver/pip/"
python setup.py build
echo -e '#!/bin/sh\n\nexec python -m pyfrx.pyfrx "$@"' > _pyfrx
}
package() {
echo "INSTALLING..."
cd "$srcdir/$pkgname-$pkgver/pip/"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
mkdir -p $pkgdir/usr/bin
cp _pyfrx "$pkgdir/usr/bin/pyfrx"
chmod +x $pkgdir/usr/bin/pyfrx
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
echo 'Finished setting up pyfrx.'
}
md5sums=('6600c2b627aff4e476d4505edb27316f')
|