aboutsummaryrefslogtreecommitdiffstats
path: root/community/osmo/APKBUILD
blob: 96c1c5927dff636c39b48ac66eea2babac3ed40e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osmo
_ver=0.4.0-1
pkgver=${_ver/-/.}
pkgrel=0
pkgdesc="A handy personal organizer"
url="http://clayo.org/osmo/"
arch="all"
license="GPL"
makedepends="gtk+3.0-dev libnotify-dev libical-dev libxml2-dev libxml2-utils
	autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/$pkgname-pim/$pkgname-$_ver.tar.gz
	osmo-0.2.10-build-mo.patch
	"
builddir="$srcdir"/$pkgname-$_ver

prepare() {
	cd "$builddir"
	default_prepare
	sed -i -e 's/-Werror//' configure.ac || return 1
	autoreconf -vif
}

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
}

sha512sums="526143100c9c46a074cefb63564973e68468c1a26968a7cfa0f99265f6cefb977648755f2a4b0b6e537342aa5134ef2c045de70ee5c3893ac1e1b0db81f0dbae  osmo-0.4.0-1.tar.gz
c9e49a3177f6135b2cedc00b0bc36ef7421a34941349bcfe242702dcfb5ebf13907d0ae8f8af1e26065b21e53f29e69c1fe36fd6724bfbb86556c3df828c8f23  osmo-0.2.10-build-mo.patch"