summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9df75bc4cba8ed57cab2d3551e22a0ad35b5e1ca (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
41
42
43
44
45
46
47
48
# Maintainer: Marcus Behrendt <marcus dot behrendt dot eightysix(in numbers) at bigbrothergoogle dot com

_with_extra=y

pkgname=arc-kde-git
epoch=1
pkgver=r112.0d4ff0e
pkgrel=4
pkgdesc='A port of the popular GTK theme Arc for Plasma 5 desktop with a few additions and extras (git version)'
arch=('any')
url='https://github.com/PapirusDevelopmentTeam/arc-kde'
license=('GPLv3')
options=('!strip')
conflicts=('arc-kde')
provides=('arc-kde')
makedepends=('git')
optdepends=(
  "plasma-desktop: For Plasma desktop theme"
  "arc-gtk-theme: A flat theme with transparent elements for GTK 3, GTK 2 and Gnome-Shell"
  "arc-firefox-theme: Arc Firefox theme"
  "kwin: For Aurorae decorations"
  "kvantum-qt5: For Kvantum Theme"
  "konsole: For Konsole color schemes"
  "konversation: For konversation theme"
  "yakuake: For Yakuake theme"
)

if [ -n "${_with_extra}" ]; then
    optdepends+=("eclipse-common")
    
    prepare() {
        sed -i 's|^install:|install:\n\tmkdir -p $(DESTDIR)/usr/share/arc\n\tcp --no-preserve=mode,ownership -r extra $(DESTDIR)/usr/share/arc|' "${srcdir}/${pkgname}/Makefile"
    }
fi

source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
install=${pkgname}.install

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

package() {
    cd "${pkgname}"
    make DESTDIR="${pkgdir}" install
}