diff options
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,35 +1,40 @@ # Maintainer: Shatur <genaloner@gmail.com> # Use KDE API features (recommended for Plasma users) -_plasma=false +_plasma=true + +# Submodule versions +_singleapplication=3.0.14 pkgname=optimus-manager-qt -pkgver=1.2.7 +pkgver=1.3.0 pkgrel=1 pkgdesc="A Qt interface for Optimus Manager that allows to configure and switch GPUs on Optimus laptops using the tray menu" arch=('x86_64') url="https://github.com/Shatur95/optimus-manager-qt" license=('GPL3') -depends=('qt5-base' 'optimus-manager>=1.0') +depends=('qt5-base' 'optimus-manager>=1.2') makedepends=('qt5-tools') source=($pkgname-$pkgver.tar.gz::"https://github.com/Shatur95/optimus-manager-qt/archive/$pkgver.tar.gz" - SingleApplication-submodule.tar.gz::"https://github.com/itay-grudev/SingleApplication/archive/3.0.14.tar.gz") -sha256sums=('43afc7e2c13544e4ff2fac2f48185a9ca37fe7c3b7d2ae718879644c756624e7' + SingleApplication-$_singleapplication.tar.gz::"https://github.com/itay-grudev/SingleApplication/archive/$_singleapplication.tar.gz") +sha256sums=('331aeb57fe7f687226356dd263eedbf08bcf868955e6e64a094044eac7356494' '898aa58cebceb07a3b9af65011c0eef23e9789f930a021037dd7e05d2910f318') -if [ $_plasma == true ]; then +if [ $_plasma == true ] +then depends+=('knotifications' 'kiconthemes') fi # Move submodules into the project prepare() { - mv SingleApplication-3.0.14/* "$pkgname-$pkgver/src/third-party/singleapplication" + mv SingleApplication-$_singleapplication/* "$pkgname-$pkgver/src/third-party/singleapplication" } build() { cd "$pkgname-$pkgver" - if [ $_plasma == true ]; then + if [ $_plasma == true ] + then qmake "DEFINES += PLASMA" else qmake |