mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
64 lines
1.8 KiB
Text
64 lines
1.8 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=qt5-qtpurchasing
|
|
pkgver=5.15.8_git20221110
|
|
pkgrel=0
|
|
_commit="9dfea35b04dcb52d02d7a2883df88d89ba9999ef"
|
|
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
|
|
url="https://www.qt.io/developers/"
|
|
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
|
|
pkgdesc="Qt In-app purchasing API"
|
|
makedepends="
|
|
qt5-qtbase-dev
|
|
qt5-qtdeclarative-dev
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
builddir="$srcdir/qtpurchasing-$_commit"
|
|
|
|
case $pkgver in
|
|
*_beta*|*_rc*) _rel=development_releases;;
|
|
*) _rel=official_releases;;
|
|
esac
|
|
|
|
source="https://dev.alpinelinux.org/archive/qt/qtpurchasing-$_commit.tar.xz"
|
|
|
|
_disturl="dev.alpinelinux.org:/archive/qt/"
|
|
snapshot() {
|
|
clean
|
|
deps
|
|
mkdir -p "$srcdir" && cd "$srcdir"
|
|
git clone https://invent.kde.org/qt/qt/qtpurchasing.git && cd qtpurchasing
|
|
git archive --format tar --prefix=qtpurchasing-$_commit/ $_commit | xz -T0 -9 -vv - > $SRCDEST/qtpurchasing-$_commit.tar.xz
|
|
rsync --progress -La $SRCDEST/qtpurchasing-$_commit.tar.xz $_disturl
|
|
}
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# We need to make the build system think we're running in a git repository
|
|
# so it correctly symlinks during the build
|
|
mkdir .git
|
|
}
|
|
|
|
build() {
|
|
qmake-qt5
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
|
find "$pkgdir/usr/lib" -type f -name '*.prl' \
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
install -d "$pkgdir"/usr/share/licenses
|
|
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
|
|
}
|
|
sha512sums="
|
|
a0a9579683e3447ca48d7995ed7e98c894ac0b43a0e16293172953e9a2bccfbc28dfe5bcf46540b71a6bbe3060d6d15dc28d92458a0065e69cdab1f3f16e4a81 qtpurchasing-9dfea35b04dcb52d02d7a2883df88d89ba9999ef.tar.xz
|
|
"
|