summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f25cb3ed54076b55056e78127779a95c9fd0717 (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=r185.g2a09a90
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=(qt6-base wayland layer-shell-qt kwin)
makedepends=(cmake git extra-cmake-modules qt6-base wayland layer-shell-qt)
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: