summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e21d20df155a4788409e5708a0c702aecadef4ec (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
# Maintainer: Frantic1048 <archer@frantic1048.com>
pkgdesc='Fcitx Cangjie5 code table for Colemak layout.'
pkgname='fcitx-table-cangjie5-colemak'
pkgver=r3.c9767e3
pkgrel=1
makedepends=('git')
depends=('fcitx')
conflicts=()
provides=()
arch=('any')
url='https://github.com/frantic1048/fcitx-table-cangjie5-colemak'
license=('GPL')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')

pkgver () {
	cd "${pkgname}"
	(
		set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}

package () {
	cd "${pkgname}"

	install -d "${pkgdir}/usr/share/fcitx/table/"
	install -m755 "table/cangjie5-colemak.conf" "${pkgdir}/usr/share/fcitx/table/"
	install -m755 "table/cangjie5-colemak.mb" "${pkgdir}/usr/share/fcitx/table/"
}