aboutsummaryrefslogtreecommitdiffstats
path: root/main/osmo/APKBUILD
blob: 5b062e9f7c5a27c53f1fed15783f058362d6c634 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osmo
pkgver=0.2.14
pkgrel=0
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
	"

_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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

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

md5sums="712245eaa6c9cee522235b38d529a64c  osmo-0.2.14.tar.gz
6c9939fd4df9d25e1a220585e6875c78  osmo-0.2.10-build-mo.patch"
sha256sums="052c3509e9e5ee3f7692fc0d456bebd3a13727acb985901f08c0e2e86bf64a6d  osmo-0.2.14.tar.gz
ab81ce85449170a0256b6b4ef6bee1a5513772b46ee31571983ee0dc4fa63339  osmo-0.2.10-build-mo.patch"
sha512sums="e556f26a03e3bc3b5b78c8fc848739e900c3c16bf81a05a64fbba5b28e343bbf7d11743d0c8eadf4d37878d7165d6890021c5b55d70a634bd97e86959815fc25  osmo-0.2.14.tar.gz
c9e49a3177f6135b2cedc00b0bc36ef7421a34941349bcfe242702dcfb5ebf13907d0ae8f8af1e26065b21e53f29e69c1fe36fd6724bfbb86556c3df828c8f23  osmo-0.2.10-build-mo.patch"