diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-05-07 14:44:49 -0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-05-09 04:23:36 +0300 |
commit | f79048ce1dbe89bcde2a0ca24ca6cbafc76ee21b (patch) | |
tree | 7e0132774e58952b4e80419c1221d28b54a25ddb /community/editorconfig/APKBUILD | |
parent | aaeb00a84115222b184371b5a038d25b1fdabd23 (diff) | |
download | aports-f79048ce1dbe89bcde2a0ca24ca6cbafc76ee21b.tar.bz2 aports-f79048ce1dbe89bcde2a0ca24ca6cbafc76ee21b.tar.xz |
community/editorconfig: upgrade to 0.12.3
- Enable check
- Split $pkgname-static and lib$pkgname
- Remove obsolete CMake args
Diffstat (limited to 'community/editorconfig/APKBUILD')
-rw-r--r-- | community/editorconfig/APKBUILD | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/community/editorconfig/APKBUILD b/community/editorconfig/APKBUILD index 58ca6c7cb2..67fd7ce7e8 100644 --- a/community/editorconfig/APKBUILD +++ b/community/editorconfig/APKBUILD @@ -2,34 +2,44 @@ # Maintainer: Paul Morgan <jumanjiman@gmail.com> pkgname=editorconfig _pkgname=$pkgname-core-c -pkgver=0.12.2 +pkgver=0.12.3 +_testname=editorconfig-core-test +_testver=0.12 pkgrel=0 pkgdesc="EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)" url="https://github.com/editorconfig/editorconfig-core-c" arch="all" license="BSD-2-Clause" -makedepends="cmake doxygen pcre-dev" -subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/$_pkgname/archive/v$pkgver.tar.gz" +makedepends="cmake pcre2-dev" +subpackages="lib$pkgname:libs $pkgname-static $pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/editorconfig/$_pkgname/archive/v$pkgver.tar.gz + https://github.com/editorconfig/$_testname/archive/v${_testver}.tar.gz + disable-failing-test.patch + " builddir="$srcdir/$_pkgname-$pkgver" -build() { - cd "$builddir" +prepare() { + # Tests are taken from a github release tarball so place them in the tree + rmdir tests + mv ../${_testname}-${_testver} tests + default_prepare +} +build() { cmake . \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_C_FLAGS_MINSIZEREL="$CFLAGS" \ - -DCMAKE_CXX_FLAGS_MINSIZEREL="$CXXFLAGS" \ - -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL="$LDFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ - -DINI_ALLOW_MULTILINE=1 + -DBUILD_DOCUMENTATION=False make } -package() { - cd "$builddir" +check() { + make test +} +package() { make install DESTDIR="$pkgdir" # Remove symlink to editorconfig-$pkgver. @@ -37,4 +47,13 @@ package() { mv -f "$pkgdir/usr/bin/$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" } -sha512sums="6ab3e4f7f95c83c0781064ca15bb70394bb947f9d4cd1348224f02e25c65021d14439b913775d7cfafb93476158799c34438fa548adf3c7ec6dbfd6f1052a046 editorconfig-0.12.2.tar.gz" +static() { + depends="" + pkgdesc="$pkgdesc (static library)" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib +} + +sha512sums="4a17cd6317bd45f8b0131070165d852569d020f1cf74e72b44057b97672184b4992aee54aae6e3222c669fdce8bb6b1f3482235e6518acffcef05e1d74087e6e editorconfig-0.12.3.tar.gz +6a6334ad9de88062eab2de8c7dee60e45766cd2657cf41daf9fff6a3bc8ba3f9c9b9629d0c189d2127f6c8e615d0e8bd401e8e294f3f2c02cbd6fe452ca15e7c v0.12.tar.gz +dbbd15f1559cf3fd03d8cfbcd122276c2f054d373e4a1ac0a5c867768d9f5ae3847bffb64e7109d816ed1c1934968b88cd690bc9429be1876bcf69df2eb3e62d disable-failing-test.patch" |