aboutsummaryrefslogtreecommitdiffstats
path: root/main/osmo/APKBUILD
blob: 169822579263c565c3d3155097b3eed9912b77f9 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osmo
pkgver=0.2.10
pkgrel=4
pkgdesc="A handy personal organizer"
url="http://clayo.org/osmo/"
arch="all"
license="GPL"
makedepends="gtk+-dev libnotify-dev libical-dev libxml2-dev autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/$pkgname-pim/$pkgname-$pkgver.tar.gz
	osmo-0.2.10-build-mo.patch
	osmo-0.2.10-libnotify-0.7.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		msg "Applying ${i##*/}"
		patch -p1 -i "$i" || return 1
	done
	sed -i -e 's/-Werror//' configure.ac || return 1
	aclocal && autoconf && automake --add-missing
}

build() {
	cd "$_builddir"
	CFLAGS="$CFLAGS -I/usr/include/libical"
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="a774db748228efee96186158d553ade9  osmo-0.2.10.tar.gz
6c9939fd4df9d25e1a220585e6875c78  osmo-0.2.10-build-mo.patch
92f7208e2e67482df61d20e6c04747dd  osmo-0.2.10-libnotify-0.7.patch"