From 95d2aabc50e702af6a30ea9de7929115a35ae12d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 8 Oct 2017 00:39:58 -0500 Subject: user/kfloppy: new package --- user/kfloppy/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 user/kfloppy/APKBUILD (limited to 'user/kfloppy') diff --git a/user/kfloppy/APKBUILD b/user/kfloppy/APKBUILD new file mode 100644 index 000000000..9c258e836 --- /dev/null +++ b/user/kfloppy/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kfloppy +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Utility for formatting floppy diskettes" +url="https://utils.kde.org/projects/kfloppy/" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev ki18n-dev kcoreaddons-dev + kcompletion-dev kdoctools-dev kxmlgui-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/kfloppy-$pkgver.tar.xz" +builddir="$srcdir/kfloppy-$pkgver" + +build() { + cd "$builddir" + 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() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="ab2addc4e5460eb4ed0fec8d428fb9d80b8ec0aacf194a3a01a7bb7cf08badcc0349b4f7278c44de31aa70c3108a543096ed669fe6c620c31f52d80bb7a76386 kfloppy-17.08.1.tar.xz" -- cgit v1.2.3-70-g09d2