2020-06-07 14:41:26 +00:00
|
|
|
# Description: An open source implementation of iCalendar protocols and protocol data units
|
|
|
|
# URL: https://github.com/libical/libical
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2022-01-03 14:33:04 +01:00
|
|
|
# Depends on: glib libxml2
|
2020-06-07 14:41:26 +00:00
|
|
|
|
|
|
|
name=libical
|
2022-10-18 21:44:14 +02:00
|
|
|
version=3.0.16
|
2020-06-07 14:41:26 +00:00
|
|
|
release=1
|
2021-01-17 12:19:32 +00:00
|
|
|
source=(https://github.com/libical/libical/archive/v$version/$name-$version.tar.gz)
|
2020-06-07 14:41:26 +00:00
|
|
|
|
|
|
|
build() {
|
2020-11-08 11:43:31 +00:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2021-01-17 12:19:32 +00:00
|
|
|
-D CMAKE_INSTALL_LIBEXECDIR=lib/$name \
|
2020-11-08 11:43:31 +00:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:56:50 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:43:31 +00:00
|
|
|
-D SHARED_ONLY=true \
|
|
|
|
-D ICAL_BUILD_DOCS=false \
|
|
|
|
-Wno-dev
|
2020-06-07 14:41:26 +00:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-06-07 14:41:26 +00:00
|
|
|
}
|