diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2020-04-13 20:50:04 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-04-14 05:13:43 +0000 |
| commit | c5c7ce260b97e52c922417fd3f2017727b77cdbc (patch) | |
| tree | 90c51553bf58cf2ceec5e91f3217cae47dbf2796 /testing | |
| parent | 7dd9a6f16cd18073e9cdbd3e8ae0d2d26bcd728b (diff) | |
| download | aports-c5c7ce260b97e52c922417fd3f2017727b77cdbc.tar.bz2 aports-c5c7ce260b97e52c922417fd3f2017727b77cdbc.tar.xz | |
testing/choqok: fix location of cmake modules
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/choqok/APKBUILD | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/testing/choqok/APKBUILD b/testing/choqok/APKBUILD index 8711aba840..abb730263d 100644 --- a/testing/choqok/APKBUILD +++ b/testing/choqok/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=choqok pkgver=1.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="A micro-blogging client" url="https://choqok.kde.org/" arch="all !armhf" @@ -16,19 +16,27 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="https://download.kde.org/stable/choqok/${pkgver%.*}/src/choqok-$pkgver.tar.xz" build() { - cmake -B "$builddir"/build \ + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib + -DCMAKE_INSTALL_LIBDIR=lib \ + $CMAKE_CROSSOPTS . make -C build } check() { + cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" make -C build install + + mkdir -p "$pkgdir"/usr/lib + mv "$pkgdir"/usr/share/cmake "$pkgdir"/usr/lib } sha512sums="6f5998078e555f7b4a40270ad0a4defa2d15bb8440b810320fc4cfc38d78cb34bb9b2f6a38eb33eb3217b51a78a7fbc7f79224cd0ddb0fcbf8c9035d8e600e96 choqok-1.7.0.tar.xz" |
