summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 622deba534dc218a06432b1930c0a244ae0653b1 (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
pkgname=sddm-slice-git
pkgver=50.0.0
pkgrel=1
pkgdesc="Simple dark SDDM theme with many customization options."
arch=('any')
url="https://github.com/RadRussianRus/sddm-slice"
license=('CCPL:cc-by-sa')
depends=('sddm' 'qt5-graphicaleffects')
makedepends=('git')
provides=("sddm-slice")
conflicts=("sddm-slice")
_theme_name='slice'
_repo_name='sddm-slice'
source=("git+https://github.com/RadRussianRus/${_repo_name}.git#branch=master")
md5sums=('SKIP')

pkgver() {
  echo "$(git -C "${srcdir}/${_repo_name}" rev-list --count HEAD).0.0"
}

package() {
  install -d "${pkgdir}"/usr/share/sddm/themes/"${_theme_name}"
  cp -r "${srcdir}/${_repo_name}"/* "${pkgdir}"/usr/share/sddm/themes/"${_theme_name}"/
  find "${pkgdir}"/usr/share/sddm/themes/"${_theme_name}" -type d -exec chmod 555 {} \;
  find "${pkgdir}"/usr/share/sddm/themes/"${_theme_name}" -type f -exec chmod 444 {} \;
}