summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50ede7d0bbcbb9de97cc8713471f03de67f29a36 (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
# Maintainer: Simon Ser
pkgname=libhangul-git
pkgver=0.1.0.r51.2ddc547f014a
pkgrel=2
pkgdesc="A library to support hangul input method logic"
arch=('x86_64')
url="https://github.com/libhangul/libhangul"
license=('LGPL')
depends=()
makedepends=('intltool' 'git')
provides=('libhangul')
conflicts=('libhangul')
source=("git+https://github.com/libhangul/libhangul.git")
md5sums=('SKIP')

pkgver() {
	cd libhangul
	printf "%s" "$(git describe --long | sed 's/libhangul-//' | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd libhangul
	touch config.rpath
	./autogen.sh
	./configure --prefix=/usr
	make
}

package() {
	cd libhangul
	make DESTDIR="$pkgdir/" install
	install -D COPYING "$pkgdir/usr/share/licenses/libhangul/COPYING"
}