summaryrefslogblamecommitdiff
path: root/user/libical/APKBUILD
blob: a866743c7919ddd99cce7b41d66f76b405ed58aa (plain) (tree)
1
2
3
4
5
6
7
8
9
10

               
            






                                                          
                                             





















                                                                                             
                                                                                                                                                                   
# Maintainer: 
pkgname=libical
pkgver=3.0.4
pkgrel=0
pkgdesc="Reference implementation of the iCalendar format"
url="https://libical.github.io/libical/"
arch="all"
#options="!check"  # Test suite is very broken.
license="MPL-2.0 OR LGPL-2.1-only"
depends=""
makedepends="cmake libxml2-dev perl glib-dev"
subpackages="$pkgname-dev"
source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"

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

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="491a1dd0c33bb823a79165eb6e4f86ef048a44642adfe44f8e69c83598b458ddf8e4365b11afc37d0b21bc1367e0a99096fc7887aae29e7ff4e3bd1cdee64dd9  libical-3.0.4.tar.gz"