blob: 17ad8ba28424f2ce9790a39f4936c24fab974452 (
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
35
36
37
38
39
|
# Maintainer: Jonas Møller <jonas.moeller2@protonmail.com>
pkgname=hawck-git
_pkgname=hawck
pkgver=20240108
pkgrel=1
pkgdesc="Keyboard macro system"
arch=("x86_64")
url="https://github.com/snyball/hawck"
license=('BSD')
depends=("libnotify" "lua53" "ruby" "python" "kbd" "hicolor-icon-theme")
makedepends=("meson" "gcc" "pkg-config" "ninja" "git")
optdepends=("doxygen" "zenity" "polkit-gnome")
install=$pkgname.install
source=("git+https://github.com/snyball/hawck.git")
md5sums=("SKIP")
pkgver() {
cd $_pkgname
TZ=UTC date -d @$(git log -1 --format=%ct) +%Y%m%d
}
prepare() {
cd "$_pkgname"
}
build() {
cd "$_pkgname"
[ -d build ] || mkdir build
cd build
meson ..
meson configure -Dprefix=/usr
meson configure -Dcpp_args=-O2
ninja -j8
}
package() {
cd "$_pkgname/build"
DESTDIR="$(realpath "$pkgdir")" ninja install
}
|