summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e65366f68bc52871e50c0d5fcde689e5efe53e38 (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
# Maintainer: SoftExpert <softexpert at gmail dot com>

_pkgname=crystal-dock
pkgname=${_pkgname}-git
pkgver=r111.g3b74a82
pkgrel=1
arch=(x86_64)
pkgdesc='A cool desktop panel for Linux desktop'
arch=('x86_64')
url='https://github.com/dangvd/crystal-dock'
license=('GPL3')
provides=(crystal-dock)
conflicts=(crystal-dock)
depends=(qt5-base kwin)
makedepends=(cmake git extra-cmake-modules kcmutils5)
source=("${_pkgname}::git+https://github.com/dangvd/crystal-dock.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/${_pkgname}"
  mkdir -p build
  cd build
  cmake  \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ../src
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  DESTDIR="${pkgdir}" cmake --install build
}

# vim:set ts=8 sts=2 sw=2 et: