blob: 698074d0954926bc940237a9d8450642d7ce6e76 (
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
59
60
61
62
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=anthywl-git
_gitpkgname=anthywl
pkgver=r90.2fad24a
pkgrel=1
pkgdesc='Japanese input method for Wayland compositors'
arch=('x86_64')
url='https://github.com/tadeokondrak/anthywl'
license=('ISC')
depends=(
'anthy'
'cairo'
'glib2'
'glibc'
'libscfg'
'libvarlink'
'libxkbcommon'
'pango'
'wayland'
'wayland-protocols'
)
makedepends=('git' 'meson' 'ninja' 'scdoc')
provides=("anthywl=${pkgver}")
conflicts=('anthywl')
install="${pkgname}.install"
source=("${_gitpkgname}::git+https://github.com/tadeokondrak/anthywl.git")
sha512sums=('SKIP')
pkgver() {
printf "r%s.%s" \
"$(git -C "${_gitpkgname}" rev-list --count HEAD)" \
"$(git -C "${_gitpkgname}" rev-parse --short HEAD)"
}
build() {
cd "${_gitpkgname}"
arch-meson build
ninja -C build
}
package() {
cd "${_gitpkgname}"
echo >&2 'Packaging application files'
DESTDIR="$pkgdir" ninja -C build install
echo >&2 'Packaging skeleton configuration'
install -D -m 644 -T \
data/default_config \
"${pkgdir}/usr/share/${_gitpkgname}/examples/config"
echo >&2 'Packaging the documentation'
install -D -m 644 -t "${pkgdir}/usr/share/doc/${_gitpkgname}" \
README.md
echo >&2 'Packaging the license'
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
LICENSE
}
|