44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
||
|
pkgname=ubuntu-download-manager
|
||
|
pkgver=0_git20180603
|
||
|
_commit="5ff8a51e5a8f68dce791a5c66f162137d7b96543"
|
||
|
pkgrel=0
|
||
|
pkgdesc="Provides a service for downloading files while an application is suspended"
|
||
|
arch="x86_64"
|
||
|
url="https://unity8.io"
|
||
|
license="LGPL-3.0"
|
||
|
depends=""
|
||
|
depends_dev="qt5-qtdeclarative-dev boost-dev glog-dev libnih-dev"
|
||
|
makedepends="$depends_dev cmake cmake-extras gtest-dev gmock"
|
||
|
checkdepends="dbus-test-runner xvfb" # and xvfb-run :)
|
||
|
source="$pkgname-$_commit.tar.gz::https://github.com/ubports/$pkgname/archive/$_commit.tar.gz
|
||
|
cmake-extras.patch"
|
||
|
subpackages="$pkgname-dev"
|
||
|
builddir="$srcdir/$pkgname-$_commit"
|
||
|
options="!check" # Tests fail
|
||
|
|
||
|
build() {
|
||
|
mkdir -p "$builddir"/build
|
||
|
cd "$builddir"/build
|
||
|
cmake \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
|
||
|
-DCMAKE_INSTALL_LIBDIR=lib ..
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd "$builddir"/build
|
||
|
make test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir"/build
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
}
|
||
|
|
||
|
sha512sums="1f343548951c14e29e9e461335ca3803f7a9f75c469760ed7bc93f5ff7d166e124c77da5cf1267c9f633b13e2bad6489fbbadb76e930044ac80ad1c2d9a3408a ubuntu-download-manager-5ff8a51e5a8f68dce791a5c66f162137d7b96543.tar.gz
|
||
|
36fa1cfccfa29b9c298711bf8c7e264ec15d4e78a3e47cdd12f8ab0752f83504dc4b3e8576e84ca529ff631c8a9a7452a88bfa9612b7261fe8d80c4c8c4f1d35 cmake-extras.patch"
|