blob: 3f9550b28347c7a5e65dea6cfdcb5207f3fef280 (
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: Anton Butenko <F48D1.h@gmail.com>
pkgname=goldjack
pkgver=20201213
pkgrel=1.0
pkgdesc='Jackalizer tool'
url='https://github.com/F48D1/goldjack.git'
arch=('any')
license=('GPL2')
depends=('python' 'sh' 'python-pillow')
makedepends=('git')
source=('goldjack::git://github.com/F48D1/goldjack.git')
sha512sums=('SKIP')
package() {
cd ${pkgname}
install -d "${pkgdir}/etc"
install -d "${pkgdir}/usr/bin"
install -d "${pkgdir}/opt/${pkgname}"
install -d "${pkgdir}/usr/share/doc"
mv main.py "${pkgdir}/opt/${pkgname}/main.py"
cat > "${pkgdir}/usr/bin/${pkgname}" << EOF
#!/bin/sh
cd /opt/${pkgname}
python main.py "\$@"
EOF
chmod 755 "${pkgdir}/usr/bin/${pkgname}"
}
|