summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a53a8111048a4650bda2c2c83dc8b33c38b67e8 (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
# Maintainer: Daniel Bermond < yahoo-com: danielbermond >

pkgname=libraqm-git
pkgver=v0.1.0.r16.g846b4f6
pkgrel=1
pkgdesc="A library that encapsulates the logic for complex text layout"
arch=('i686' 'x86_64')
url="https://github.com/HOST-Oman/libraqm"
license=('custom')
depends=('freetype2' 'harfbuzz' 'fribidi' 'glib2' 'gtk-doc')
provides=('libraqm' 'libraqm.so')
conflicts=('libraqm')
source=("$pkgname"::'git+https://github.com/HOST-Oman/libraqm.git')
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"
	
	# Git, with or without tags available
	# Using the most recent un-annotated tag reachable from the last commit: 
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
	  
}

prepare() {
	cd "${srcdir}/${pkgname}"
	
	./autogen.sh
}

build() {
	cd "${srcdir}/${pkgname}"
	
	./configure \
	        --prefix=/usr \
	        --enable-static=no \
	        --enable-shared=yes \
	        --enable-fast-install=yes \
	        --enable-gtk-doc=yes \
	        --enable-gtk-doc-html=yes \
	        --enable-gtk-doc-pdf=no
	
	make
}

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