summaryrefslogtreecommitdiff
path: root/user/kfloppy/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/kfloppy/APKBUILD')
-rw-r--r--user/kfloppy/APKBUILD44
1 files changed, 44 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"