summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10682ec510fb77c6d932d75ac6fa6f0be0613d64 (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
# Maintainer: hacker1024 <joshleivenzon at outlook dot com>

_pkgname=mint-themes
pkgname=${_pkgname}-git
pkgver=400.44239e7
pkgrel=1
pkgdesc="Linux Mint themes"
arch=('any')
url="https://github.com/linuxmint/mint-themes"
license=('GPL3')
makedepends=('git' 'ruby-sass')
conflicts=("${_pkgname}" 'mint-x-theme' 'mint-y-theme')
provides=("${_pkgname}" 'mint-x-theme' 'mint-y-theme')
source=("${_pkgname}"::git+https://github.com/linuxmint/mint-themes.git)
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

prepare() {
  cd "$srcdir/$_pkgname"
  make
  find "${srcdir}/${_pkgname}"/usr/share/themes -type f -name "metacity*xml" -exec sed -i 's:normal_dialog_style_set:normal_style_set:' {} \;
}

package() {
  cp -aR --no-preserve=ownership "${srcdir}/${_pkgname}"/usr "${pkgdir}"
}