aboutsummaryrefslogtreecommitdiffstats
path: root/main/libical/APKBUILD
blob: 3ebaac71a9ab2f9e539b16312c0a81efd53b2323 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libical
pkgver=2.0.0
pkgrel=3
pkgdesc="Reference implementation of the iCalendar format"
url="https://libical.github.io/libical/"
arch="all"
options="!check"  # Test suite is very broken.
license="LGPL MPL"
depends=""
makedepends="perl cmake"
subpackages="$pkgname-dev"
source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"

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

package() {
	cd $builddir
	make DESTDIR="$pkgdir" install
}

sha512sums="06318512d5df25e97f64b0e82ade6eaa41e42a428641642ecb8973dc23b172698a8ff8734b7e12b033b1278a131c6339d208e1bfd1bcba0a2c9519a01749a55f  libical-2.0.0.tar.gz"