summaryrefslogtreecommitdiff
path: root/user/kfloppy
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 00:39:58 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-08 00:39:58 -0500
commit95d2aabc50e702af6a30ea9de7929115a35ae12d (patch)
treec22ebafc03947aadcdbb9fd15679f0c550d33aed /user/kfloppy
parent6bbdfcdd6533222d13f49cf1a5585b063403a0cc (diff)
downloadpackages-95d2aabc50e702af6a30ea9de7929115a35ae12d.tar.gz
packages-95d2aabc50e702af6a30ea9de7929115a35ae12d.tar.bz2
packages-95d2aabc50e702af6a30ea9de7929115a35ae12d.tar.xz
packages-95d2aabc50e702af6a30ea9de7929115a35ae12d.zip
user/kfloppy: new package
Diffstat (limited to 'user/kfloppy')
-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"