diff options
author | Petar Petrov | 2018-03-04 18:57:27 +0100 |
---|---|---|
committer | Petar Petrov | 2018-03-04 18:57:27 +0100 |
commit | b54eabb97627cd6d5ea58cb198ad1751e4f9607e (patch) | |
tree | bb50e29b9c78d1991df1fa209756146fb7d4c5d5 /PKGBUILD | |
download | aur-b54eabb97627cd6d5ea58cb198ad1751e4f9607e.tar.gz |
Initial commit -> v1.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..572ea599f167 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Petar Petrov <petar.petrov.georgiev at gmail d0t com> +pkgname=e-additives.cli +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Brings food additives info to your console." +arch=('any') +url="https://github.com/vexelon-dot-net/e-additives.cli" +license=('MIT') +groups=() +depends=('python' 'python-colorama') +makedepends=() +checkdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +changelog= +source=(https://github.com/vexelon-dot-net/e-additives.cli/archive/$pkgver.tar.gz + https://github.com/vexelon-dot-net/e-additives.cli/releases/download/1.0.0/eadditives.sqlite3.gz) +sha1sums=('d01b32875402384b62669532b32a1e78ae7fca6f' + '2dfc53e956a35a8c367940379f1e23c352bec7f5') + +runname='ead' + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + touch ${runname} + echo "#!/bin/sh" > ${runname} + echo export EAD_DB_PATH="/usr/share/$pkgname/eadditives.sqlite3" >> ${runname} + echo '/usr/bin/ead-cli.py ''"$@"' >> ${runname} + echo exit 0 >> ${runname} +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + install -Dm755 $runname ${pkgdir}/usr/bin/${runname} + install -Dm755 ead.py ${pkgdir}/usr/bin/ead-cli.py + install -Dm644 ../eadditives.sqlite3 ${pkgdir}/usr/share/${pkgname}/eadditives.sqlite3 + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |