-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
25 lines (24 loc) · 918 Bytes
/
PKGBUILD
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
pkgname="autohotkey-pkg"
pkgver="1.0.0"
pkgrel="1"
pkgdesc="Autohotkey for linux"
arch=("x86_64")
depends=("python>=3.10.1" "python-pipenv>=2021.11.23")
makedepends=("git")
license=("custom")
install=autohotkey.install
source=("main.py" "Pipfile" "Pipfile.lock" "create.config" "template.txt.example" "autohotkey")
sha512sums=("SKIP" "SKIP" "SKIP" "SKIP" "SKIP" "SKIP")
package() {
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/lib/systemd/system"
mkdir -p "${pkgdir}/usr/lib/$pkgname"
cp "${srcdir}/main.py" "${pkgdir}/usr/lib/$pkgname/"
cp "${srcdir}/Pipfile" "${pkgdir}/usr/lib/$pkgname/"
cp "${srcdir}/Pipfile.lock" "${pkgdir}/usr/lib/$pkgname/"
cp "${srcdir}/template.txt.example" "${pkgdir}/usr/lib/$pkgname/"
cp "${srcdir}/autohotkey" "${pkgdir}/usr/bin/"
sh "${srcdir}/create.config" $srcdir $pkgdir
chmod +x "${pkgdir}/usr/lib/$package"
chmod +x "${pkgdir}/usr/bin/autohotkey"
}