pkgbuilds/egyscan/PKGBUILD
2024-03-31 13:25:32 -05:00

40 lines
1.0 KiB
Bash

# Maintainer: Kevin Muñoz (MrHacker) <david.munozm@proton.me>
pkgname=egyscan
_pkgname=Egyscan
pkgver=3.2
pkgrel=1
pkgdesc="egyscan the guardian angel of your digital existence"
arch=('x86_64')
url="https://github.com/dragonked2/Egyscan"
license=('MIT')
depends=(
'python'
);
optdepends=(
);
validpgpkeys=(
'2B9D22B41F2AF1042BFCE73A3CA0B9DF1BE7CE09'
)
source=(
"https://github.com/dragonked2/${_pkgname}/archive/refs/tags/Version${pkgver}.tar.gz"
"Version$pkgver.tar.gz.sig"
)
sha256sums=('62e0f55be8312a44a256460aefb3f1750a2c1eebabc021567b59bd39d13b7ad9'
'SKIP')
package() {
mkdir -p "$pkgdir/opt"
tar xf "Version${pkgver}.tar.gz" -C "$pkgdir/opt/"
mv "$pkgdir/opt/$_pkgname-Version$pkgver" "$pkgdir/opt/$pkgname"
cd "$pkgdir/opt/$pkgname"
python -m venv .venv
source .venv/bin/activate
pip install -r virtualrequirements.txt
deactivate
install -D -p -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -p -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}