mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
43 lines
999 B
Bash
43 lines
999 B
Bash
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
|
|
pkgname=tribe-partitionmanager-git
|
|
_gitname=partitionmanager
|
|
pkgver=r783.40f4b07
|
|
pkgrel=1
|
|
pkgdesc="A KDE utility that allows you to manage disks, partitions, and file systems"
|
|
arch=('i686' 'x86_64')
|
|
url='http://kde.org/applications/system/kdepartitionmanager/'
|
|
license=('GPL2')
|
|
depends=('kdelibs4support' 'kemoticons' 'parted')
|
|
makedepends=('cmake' 'git')
|
|
conflicts=('tribe-partitionmanager')
|
|
provides=('tribe-partitionmanager')
|
|
source=('git://anongit.kde.org/partitionmanager' 'tribe.patch')
|
|
md5sums=('SKIP' 'SKIP')
|
|
|
|
pkgver() {
|
|
cd $_gitname
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
mkdir build
|
|
cd ${_gitname}
|
|
git checkout frameworks
|
|
patch -p1 < ${srcdir}/tribe.patch
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake ../${_gitname} \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_UDISKS2=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|