diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-11-12 14:05:02 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-12 10:48:38 -0300 |
commit | 15a08e31dde3fc03fbbba239e3214b0e454be521 (patch) | |
tree | 80a0a60c93f27443b5eee1c722c7feffa3b59224 /community/libksane/APKBUILD | |
parent | fd50f98d4fade9978e6d7815485a93b5231a2c69 (diff) | |
download | aports-15a08e31dde3fc03fbbba239e3214b0e454be521.tar.bz2 aports-15a08e31dde3fc03fbbba239e3214b0e454be521.tar.xz |
community/libksane: move from testing
Diffstat (limited to 'community/libksane/APKBUILD')
-rw-r--r-- | community/libksane/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/libksane/APKBUILD b/community/libksane/APKBUILD new file mode 100644 index 0000000000..2ae8e7244f --- /dev/null +++ b/community/libksane/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=libksane +pkgver=19.08.2 +pkgrel=0 +arch="all" +url="https://www.kde.org/applications/graphics/" +pkgdesc="An image scanning library" +license="LGPL-2.1-only OR LGPL-3.0-only" +makedepends="extra-cmake-modules qt5-qtbase-dev ki18n-dev kwidgetsaddons-dev ktextwidgets-dev kwallet-dev sane-dev" +source="https://download.kde.org/stable/applications/$pkgver/src/libksane-$pkgver.tar.xz" +subpackages="$pkgname-dev $pkgname-lang" + +prepare() { + default_prepare + + mkdir "$builddir"/build +} + +build() { + cd "$builddir"/build + cmake "$builddir" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +check() { + cd "$builddir"/build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir"/build + DESTDIR="$pkgdir" make install +} + +sha512sums="94418deb33f53e227b9269deb43974fb6add9658e5d894d277e5bd467b8c5b526a78419b0775a175ba28d058bf627d5b129f702c6829aa76c357817234956a99 libksane-19.08.2.tar.xz" |