From a3ba423c72a0c5a27d22c187179d9fea6d1a0457 Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Thu, 9 Nov 2023 09:13:26 -0800 Subject: user/editorconfig-core-c: new package --- user/editorconfig-core-c/APKBUILD | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 user/editorconfig-core-c/APKBUILD diff --git a/user/editorconfig-core-c/APKBUILD b/user/editorconfig-core-c/APKBUILD new file mode 100644 index 000000000..710447c9d --- /dev/null +++ b/user/editorconfig-core-c/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Síle Ekaterin Liszka +# Maintainer: Síle Ekaterin Liszka +pkgname=editorconfig-core-c +pkgver=0.12.6 +pkgrel=0 +pkgdesc="Core library for maintaining editor config between editors" +url="https://editorconfig.org/" +arch="all" +options="!check" # tests not shipped??? +license="BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause" +depends="" +makedepends="cmake doxygen pcre2-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="editorconfig-core-c-$pkgver.tar.gz::https://github.com/editorconfig/editorconfig-core-c/archive/v$pkgver.tar.gz" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + . + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="7cf69ed48c0d28694fc1f54cd8ae89202a3f0a13b5302fd316f50d0f99a606f54af9709874f0da75ad11ab6f4cc36edacb4cd8639717d44842a309140be3a968 editorconfig-core-c-0.12.6.tar.gz" -- cgit v1.2.3-70-g09d2