summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c31dfd9b52a423a41d5c54911ef935796210247e (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=1
pkgdesc="A library to support hangul input method logic"
arch=('x86_64')
url="https://github.com/libhangul/libhangul"
license=('LGPL-2.1')
depends=()
makedepends=('binutils' 'intltool' 'automake' 'autoconf')
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"
}