mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 13:06:36 +02:00
56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=libqofono
|
|
pkgver=0.124
|
|
pkgrel=0
|
|
pkgdesc="Library for accessing the ofono daemon, and a Qt declarative plugin for it"
|
|
url="https://github.com/sailfishos/libqofono"
|
|
# armhf: blocked by qt5-qtdeclarative
|
|
# riscv64: Qt6 build segfaults
|
|
arch="all !armhf !riscv64"
|
|
license="LGPL-2.1-or-later"
|
|
depends_dev="
|
|
qt5-qtbase-dev
|
|
qt5-qtdeclarative-dev
|
|
qt6-qtbase-dev
|
|
qt6-qtdeclarative-dev
|
|
"
|
|
makedepends="$depends_dev"
|
|
subpackages="$pkgname-dev $pkgname-qt5:_qt5 $pkgname-qt6:_qt6"
|
|
source="https://github.com/sailfishos/libqofono/archive/$pkgver/libqofono-$pkgver.tar.gz"
|
|
options="!check" # requires running ofono
|
|
|
|
build() {
|
|
mkdir build-qt5 && cd build-qt5
|
|
/usr/lib/qt5/bin/qmake ..
|
|
make
|
|
|
|
mkdir ../build-qt6 && cd ../build-qt6
|
|
/usr/lib/qt6/bin/qmake ..
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build-qt5
|
|
INSTALL_ROOT="$pkgdir" make install
|
|
|
|
cd ../build-qt6
|
|
INSTALL_ROOT="$pkgdir" make install
|
|
|
|
# Remove installed tests
|
|
rm -r "$pkgdir"/opt
|
|
}
|
|
|
|
_qt5() {
|
|
amove usr/lib/libqofono-qt5.so*
|
|
amove usr/lib/qt5
|
|
}
|
|
|
|
_qt6() {
|
|
amove usr/lib/libqofono-qt6.so*
|
|
amove usr/lib/qt6
|
|
}
|
|
|
|
sha512sums="
|
|
ee9d14c23cf7c4a08bfe42b37a59198b5bad8e304e365e063736dfd1a96f04f76c60b9e438a307ccda62be8acafc2276116ecfc090329ca6d14a531dedf8ea7c libqofono-0.124.tar.gz
|
|
"
|