blob: 306f4a8f22625231f5bc4618525745d0b5f8e84a (
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
|
# Maintainer: k8ie <k8ie@mcld.eu>
# Co-Maintainer: ItsDrike <itsdrike@protonmail.com>
pkgname='proidcm'
pkgver=1.0.4
pkgrel=1
_filename="${pkgname}-${pkgver}-0.amd64"
pkgdesc="Graphical utility for managing ProID Smart Cards"
depends=(libproidplus-gui qt6-base)
makedepends=(sed curl)
arch=('x86_64')
url="https://proid.cz/"
license=('custom:EULA')
prepare () {
_sourceurl=$(curl https://appcenter.proid.cz/download?solutionId=1aba3679-25ec-4ca2-b854-c787550a6753 | grep sasurl | sed -n 's/.*sasurl:"\([^"]*\)".*/\1/p' || exit 1)
curl -OJ $_sourceurl
bsdtar -xf "$srcdir/${_filename}.deb.zip"
echo "$(cat $srcdir/$_filename.deb.sha256 | cut -d ' ' -f1) $srcdir/$_filename.deb" | sha256sum --check --status
bsdtar -xf "$srcdir/$_filename.deb"
}
package () {
bsdtar -C "$pkgdir" -xf "$srcdir/data.tar.xz"
find "$pkgdir" -type d -exec chmod 755 {} +
find "$pkgdir" -type f -exec chmod go-w {} +
chown -R root:root "$pkgdir"
}
|