aboutsummaryrefslogtreecommitdiffstats
path: root/main/libical/APKBUILD
blob: 9cb26b9070a767c610a400271a2b50898bf36b5e (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=libical
pkgver=1.0.1
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/v1.0.1/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 \
		-DSHARED_ONLY=true \
		|| return 1
	make || return 1
}

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

md5sums="d26a58149aaae9915fa79fb35c8de6fc  libical-1.0.1.tar.gz"
sha256sums="089ce3c42d97fbd7a5d4b3c70adbdd82115dd306349c1f5c46a8fb3f8c949592  libical-1.0.1.tar.gz"
sha512sums="dfdd9b9b3c01aa9ce40ae38fe3c7339eae33e48f60f86bd627e0dbe9c8270b95fb15c0ff0684a22d6e9be163b41d4c87ff0f7a49adcd0baac127d16c8c21d020  libical-1.0.1.tar.gz"