blob: a85a85e472a8c23452c6a97470203314e2ff0087 (
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
|
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
_pkgname='KDiskMark'
pkgname="${_pkgname,,}-git"
pkgver=3.1.2.r3.g59c9758
pkgrel=2
pkgdesc='Simple disk benchmark tool'
arch=('x86_64')
url='https://github.com/JonMagon/KDiskMark'
license=('GPL3')
depends=('fio' 'hicolor-icon-theme' 'qt5-base' 'kauth')
makedepends=('extra-cmake-modules' 'git' 'qt5-tools')
provides=("${_pkgname,,}")
conflicts=("${_pkgname,,}")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${_pkgname}
git submodule init
git submodule update
}
build() {
export CFLAGS+=" ${CPPFLAGS}"
export CXXFLAGS+=" ${CPPFLAGS}"
cmake -B build -S "${_pkgname}" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBEXECDIR='lib' \
-Wno-dev
make -C build
}
package() {
make DESTDIR="${pkgdir}" PREFIX="/usr" -C build install
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname,,}" "${_pkgname}/README.md"
}
# vim: ts=2 sw=2 et:
|