blob: c40051a1c7d2cdae83190b0d30ff18ed8b077934 (
plain) (
tree)
|
|
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lxqt-archiver
pkgver=0.4.0
_lxqt=0.17.0
_lxqt_build=0.9.0
pkgrel=0
pkgdesc="Archive management utility for the LXQt desktop"
url="https://lxqt.github.io/"
arch="all"
options="!check" # No test suite
license="GPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules json-glib-dev libfm-qt-dev>=$_lxqt
lxqt-build-tools>=$_lxqt_build qt5-qttools-dev qt5-qtx11extras-dev"
source="https://github.com/lxqt/lxqt-archiver/releases/download/$pkgver/lxqt-archiver-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver/build"
prepare() {
mkdir -p "$builddir" && cd "$builddir"/..
default_prepare
}
build() {
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() {
CTEST_OUTPUT_ON_FAILURE=TRUE ctest ..
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="e1b323cd118af3726009e153c4f9766ec53b29fa0280530da16e2101d36ec45b55de0fe3d87c1386a4e5b3d88712fd209659b4ebb9344af689812600ae136ed6 lxqt-archiver-0.4.0.tar.xz"
|