diff options
Diffstat (limited to 'testing/libofx/APKBUILD')
-rw-r--r-- | testing/libofx/APKBUILD | 53 |
1 files changed, 31 insertions, 22 deletions
diff --git a/testing/libofx/APKBUILD b/testing/libofx/APKBUILD index dd03ba84389..0795aa0fe08 100644 --- a/testing/libofx/APKBUILD +++ b/testing/libofx/APKBUILD @@ -1,38 +1,47 @@ # Contributor: Leo <thinkabit.ukim@gmail.com> # Contributor: 7heo <7heo@mail.com> -# Maintainer: +# Maintainer: Patrycja Rosa <alpine@ptrcnull.me> pkgname=libofx -pkgver=0.10.2 -pkgrel=0 -pkgdesc="The libofx OFX banking protocol abstraction library" +pkgver=0.10.9 +pkgrel=1 +pkgdesc="OFX banking protocol abstraction library" url="https://github.com/libofx/libofx" arch="all" license="GPL-2.0-or-later" -makedepends="bash automake autoconf libtool gengetopt opensp-dev" -subpackages="$pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/libofx/libofx/archive/$pkgver.tar.gz" +makedepends=" + cmake + curl-dev + gengetopt + libxml++-2.6-dev + opensp-dev + samurai + " +subpackages="$pkgname-dev $pkgname-tools" +source="https://github.com/libofx/libofx/releases/download/$pkgver/libofx-$pkgver.tar.gz" +options="!check" # fails if /tmp/catalog exists -prepare() { - default_prepare - ./autogen.sh +build() { + cmake -B build -G Ninja -Wno-dev \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build } -build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - --disable-static - make -j1 +check() { + ctest --test-dir build --output-on-failure } package() { - make -j1 DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build +} + +tools() { + pkgdesc="$pkgdesc (tools)" + + amove usr/bin + amove usr/share } sha512sums=" -14ba2779d94209312a8a1bbf598e6a31820df4fa7e222ae1abb8d4234a6c7ba7068e06a73ad4ee93bcb53ccb99a8007d799d9e66a9921704dc75c84b0e7dc307 libofx-0.10.2.tar.gz +89425912fa8c800ede9d7177ccd5cb3ea2a2301b42aa6580ddb105406fe68c770e2c461eefdea5bc7e883967c90e3519a219bf0b56d12c7de1030d0964d50cac libofx-0.10.9.tar.gz " |