diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-11-09 09:13:26 -0800 |
---|---|---|
committer | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-11-09 09:13:26 -0800 |
commit | a3ba423c72a0c5a27d22c187179d9fea6d1a0457 (patch) | |
tree | 5a5acc1940f8687c065b1acc1a588c0c181c1f8e /user | |
parent | 8286b6617453195e01c7b4cb2cab68b9531acd95 (diff) | |
download | packages-a3ba423c72a0c5a27d22c187179d9fea6d1a0457.tar.gz packages-a3ba423c72a0c5a27d22c187179d9fea6d1a0457.tar.bz2 packages-a3ba423c72a0c5a27d22c187179d9fea6d1a0457.tar.xz packages-a3ba423c72a0c5a27d22c187179d9fea6d1a0457.zip |
user/editorconfig-core-c: new package
Diffstat (limited to 'user')
-rw-r--r-- | user/editorconfig-core-c/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
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 <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +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" |