blob: f2dda8e8d8badf661ffa4b6a5e9191c788022d5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=kpmcore-git
pkgver=3.80.0.r962.39a5645
pkgrel=1
pkgdesc="Library for managing partitions. Common code for KDE Partition Manager and other projects. (GIT version)"
arch=('x86_64')
url='http://kde.org/applications/system/kdepartitionmanager'
license=('GPL2')
depends=('parted'
'libatasmart'
'kwidgetsaddons'
'ki18n'
'kauth'
'qca'
)
conflicts=('kpmcore')
provides=('kpmcore')
makedepends=('extra-cmake-modules'
'git'
'python'
)
optdepends=('e2fsprogs: ext2/3/4 support'
'xfsprogs: XFS support'
'jfsutils: JFS support'
'reiserfsprogs: Reiser support'
'ntfs-3g: NTFS support'
'dosfstools: FAT32 support'
'f2fs-tools: F2FS support'
'exfat-utils: exFAT support'
'nilfs-utils: nilfs support'
'udftools: UDF support'
)
source=('git://anongit.kde.org/kpmcore.git')
sha256sums=('SKIP')
pkgver() {
cd kpmcore
_ver="$(cat CMakeLists.txt | grep -m3 -e MAJOR -e MINOR -e RELEASE | grep -o "[[:digit:]]*" | paste -sd'.')"
echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
cd build
cmake ../kpmcore \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=OFF
}
build() {
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
}
|