blob: ccad67e841ec5f625c9f27bb8de7cdd6333cad6c (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
_pkgname=AHK_X11
pkgname="${_pkgname,,}-git"
pkgver=1.0.3.r27.gb4f092d
pkgrel=1
pkgdesc='AutoHotkey for Linux (X11-based systems)'
arch=('x86_64' 'x86_64_v3')
url="https://github.com/phil294/$_pkgname"
license=('GPL-2.0-or-later')
depends=(
gtk3
libnotify
libxkbcommon
libxinerama
libxtst
gc
)
makedepends=(
git
crystal
shards
gcc
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git"
"git+https://github.com/jordansissel/xdotool.git")
b2sums=('SKIP'
'SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname}"
git submodule init
git config submodule.xdotool.url "$srcdir/xdotool"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${_pkgname}"
# Don’t pollute $HOME
export SHARDS_CACHE_PATH="$srcdir/.cache/shards"
make bin/ahk_x11
}
#check() {
# cd "${_pkgname}"
# make test-dev
#}
package() {
cd "${_pkgname}"
DESTDIR="$pkgdir" make install
}
|