Skip to content

Commit

Permalink
qtermwidget-git: switch to SIP 5.x following upstream
Browse files Browse the repository at this point in the history
See: lxqt/qtermwidget#465

Also drops update_aur_repo() - it's not that useful as commit messages
are not passed through
  • Loading branch information
Chih-Hsuan Yen committed Mar 12, 2022
1 parent e50e732 commit 3732121
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 9 additions & 4 deletions archlinuxcn/qtermwidget-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

_pkgname=qtermwidget
pkgname=$_pkgname-git
pkgver=1.0.0.13.g0ad5954
pkgver=1.0.0.14.g76b4e9f
pkgrel=1
pkgdesc="A terminal widget for Qt, used by QTerminal"
arch=("x86_64")
Expand All @@ -12,7 +12,7 @@ url="https://github.com/lxqt/qtermwidget"
license=("LGPL" "custom:BSD" "custom:Public Domain")
depends=("qt5-base")
makedepends=("git" "cmake" "lxqt-build-tools-git" "qt5-tools"
"python-pyqt5" "python-sip4" "sip4")
"python-pyqt5" "pyqt-builder" "sip" "python-installer")
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
optdepends=(
Expand All @@ -30,13 +30,18 @@ build() {
mkdir -p build
cd build
cmake "$srcdir/$_pkgname" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQTERMWIDGET_BUILD_PYTHON_BINDING=OFF
-DCMAKE_INSTALL_PREFIX=/usr
make

cd "$srcdir/$_pkgname"/pyqt
CXXFLAGS="-I$PWD/../lib -I$PWD/../../build/lib" LDFLAGS="-L$PWD/../../build" sip-wheel --verbose
}

package() {
cd build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$_pkgname/README.md" -t "$pkgdir"/usr/share/licenses/$pkgname

cd "$srcdir/$_pkgname"/pyqt
python -m installer --destdir="$pkgdir" *.whl
}
1 change: 0 additions & 1 deletion archlinuxcn/qtermwidget-git/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pre_build_script: |
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
Expand Down

0 comments on commit 3732121

Please sign in to comment.