aboutsummaryrefslogtreecommitdiffstats
path: root/main/libical/APKBUILD
blob: d26883a8dacf66dd39efc66dfe391d34707639ab (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libical
pkgver=2.0.0
pkgrel=0
pkgdesc="An open source reference implementation of the icalendar data type and serialization format"
url="http://sourceforge.net/projects/freeassociation/"
arch="all"
license="LGPL MPL"
depends=
makedepends="perl cmake"
subpackages="$pkgname-dev"
source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	cmake -DCMAKE_RELEASE_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DSHARED_ONLY=true \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
}

md5sums="6bf8e5f5a3ba88baf390d0134e05d76e  libical-2.0.0.tar.gz"
sha256sums="654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da  libical-2.0.0.tar.gz"
sha512sums="06318512d5df25e97f64b0e82ade6eaa41e42a428641642ecb8973dc23b172698a8ff8734b7e12b033b1278a131c6339d208e1bfd1bcba0a2c9519a01749a55f  libical-2.0.0.tar.gz"