mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
pkgname=kcm-about-distro
|
|
_pkgname=about-distro
|
|
pkgver=2.0.1
|
|
pkgrel=5
|
|
pkgdesc="KCM displaying distribution and system information"
|
|
arch=('x86_64')
|
|
url='https://projects.kde.org/about-distro'
|
|
screenshot="http://i.imgur.com/ZidApNr.png"
|
|
license=('GPL3')
|
|
depends=('kconfigwidgets' 'solid' 'python3')
|
|
makedepends=('extra-cmake-modules' 'kdoctools')
|
|
source=("http://download.kde.org/stable/$_pkgname/$pkgver/src/$_pkgname-$pkgver.tar.xz"
|
|
'kcm-about-distrorc'
|
|
'chakra-label.png')
|
|
md5sums=('bfde9eea480fb59af8c1817ed39fd8c2'
|
|
'5d723dedd8bdf3feeff6103bf3b5112d'
|
|
'becd80aad126da45464128e825acd116')
|
|
install="kcm-about-distro.install"
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake ../$_pkgname-$pkgver \
|
|
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DLIB_INSTALL_DIR=lib \
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
|
-DSYSCONF_INSTALL_DIR=/etc \
|
|
-DQML_INSTALL_DIR=/usr/lib/qt5/qml \
|
|
-DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \
|
|
-DBUILD_TESTING=OFF
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/build"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 "$srcdir/kcm-about-distrorc" "$pkgdir/etc/xdg/kcm-about-distrorc"
|
|
install -Dm644 "$srcdir/chakra-label.png" "$pkgdir/usr/share/apps/$_pkgname/chakra-label.png"
|
|
}
|