summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8111edcb147424560845a21741565c52da1e4329 (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
# Maintainer: OriginCode <origincoder@yahoo.com>

pkgname=fcitx5-anthy-git
pkgver=5.0.1.r3.gbf307c3
pkgrel=3
pkgdesc="Anthy input method for fcitx5"
arch=('x86_64')
url="https://github.com/fcitx/fcitx5-anthy"
license=('GPL')
depends=('fcitx5-git' 'anthy' 'hicolor-icon-theme')
makedepends=('cmake' 'git' 'extra-cmake-modules')
conflicts=('fcitx-anthy' 'fcitx5-anthy')
provides=('fcitx5-anthy')
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
	cd fcitx5-anthy
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd fcitx5-anthy

	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=/usr/lib .
	make
}

package() {
	cd fcitx5-anthy
	make DESTDIR="$pkgdir" install
}