summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f9ba09d6c0d676ec3c914c0aaeca13d5c2bd55d (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
# Maintainer: Aaron Cottle <a@aaroncottle.au>
# Contributor: Antonio Rojas <arojas@archlinux.org>

pkgname=ocean-sound-theme-git
pkgdesc='Ocean Sound Theme for Plasma'
pkgver=6.0.80_r98.g4b12a40
_dirver=$(echo $pkgver | cut -d. -f1-3)
pkgrel=1
arch=(any)
url='https://kde.org/plasma-desktop/'
license=(LGPL-2.0-or-later)
depends=()
makedepends=(extra-cmake-modules-git
             qt6-base)
source=(git+https://invent.kde.org/plasma/ocean-sound-theme.git)
sha256sums=('SKIP')

conflicts=('ocean-sound-theme')
provides=('ocean-sound-theme')

pkgver() {
  cd ${pkgname%-git}
  _ver="$(grep -m1 'set(PROJECT_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"
  echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S ocean-sound-theme
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}