Browse Source

[testing] -> [extra] 'qt5-wayland-5.15.2+kde+r11-1' move

master
alium 1 year ago
parent
commit
ad351daf6e
  1. 20
      x86_64/extra/PKGBUILD
  2. 49
      x86_64/testing/PKGBUILD

20
x86_64/extra/PKGBUILD

@ -2,22 +2,30 @@
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=qt5-wayland
_qtver=5.15.2
pkgver=${_qtver/-/}
pkgver=5.15.2+kde+r11
pkgrel=1
_commit=9ee2ea141adc7765f6c212e63839ef23a4494b30
arch=('x86_64')
url='https://www.qt.io'
license=('GPL3' 'LGPL3' 'FDL' 'custom')
pkgdesc='Provides APIs for Wayland'
depends=('qt5-declarative' 'libxcomposite')
makedepends=('vulkan-headers')
makedepends=('vulkan-headers' 'git')
groups=('qt' 'qt5')
_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
sha256sums=('193732229ff816f3aaab9a5e2f6bed71ddddbf1988ce003fe8dd84a92ce9aeb5')
_pkgfqn=qtwayland
source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
sha256sums=('SKIP')
pkgver() {
cd $_pkgfqn
echo "5.15.2+kde+r"`git rev-list --count origin/5.15.2..$_commit`
}
prepare() {
mkdir -p build
cd $_pkgfqn
git revert -n 30cb2a87fcc6265232cb5a3ffce9836da6e531d6 # Revert version bump
}
build() {

49
x86_64/testing/PKGBUILD

@ -1,49 +0,0 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=qt5-wayland
pkgver=5.15.2+kde+r11
pkgrel=1
_commit=9ee2ea141adc7765f6c212e63839ef23a4494b30
arch=('x86_64')
url='https://www.qt.io'
license=('GPL3' 'LGPL3' 'FDL' 'custom')
pkgdesc='Provides APIs for Wayland'
depends=('qt5-declarative' 'libxcomposite')
makedepends=('vulkan-headers' 'git')
groups=('qt' 'qt5')
_pkgfqn=qtwayland
source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
sha256sums=('SKIP')
pkgver() {
cd $_pkgfqn
echo "5.15.2+kde+r"`git rev-list --count origin/5.15.2..$_commit`
}
prepare() {
mkdir -p build
cd $_pkgfqn
git revert -n 30cb2a87fcc6265232cb5a3ffce9836da6e531d6 # Revert version bump
}
build() {
cd build
qmake ../${_pkgfqn}
make
}
package() {
cd build
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}
}
Loading…
Cancel
Save