summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc737e7ac1fb76b4bf38b04b7baf5d4ae44e8ea9 (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
# Maintainer: Lasath Fernando <devel@lasath.org>
pkgname=plasma5-applets-kargos-git
pkgver=r85.e115334
pkgrel=1
pkgdesc="KDE Plasma port of GNOME Argos and OSX BitBar"
arch=('any')
url="https://github.com/lipido/kargos"
license=('GPL-3.0')
groups=()
depends=()
makedepends=('git' 'cmake' 'extra-cmake-modules')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://github.com/lipido/kargos.git#branch=master")
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING git SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)";
}

prepare() {
	cd "$srcdir/${pkgname%-git}";
    mkdir -p build;
}

build() {
	cd "$srcdir/${pkgname%-git}"

    cd build;
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"

    cd build
    make DESTDIR="$pkgdir/" install
}