summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5a777a5c96558b0bb2e284e027e897d73ffeffe (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: Cezary Drożak <czarek at drozak dot net>

pkgname=b00merang-haiku-git
pkgver=r31.9fa6424
pkgrel=2
pkgdesc='GTK theme based on the appearance of the open source operating system Haiku, the successor to BeOS.'
arch=('any')
url='https://github.com/B00merang-Project/Haiku'
license=('GPL3')
depends=('gtk-engine-murrine')
optdepends=('lib32-gtk-engine-murrine: Required for 32-bit apps in 64-bit environments')
makedepends=('git')
source=("${pkgname}::git+$url.git")
sha256sums=(SKIP)

pkgver() {
  cd "$pkgname"

  (
    set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
    cd "$pkgname"
    local dest="$pkgdir"/usr/share/themes/'Haiku'

    install -d "$dest"
    cp -r * "$dest"
}

# vim: ts=4 sw=4 ft=sh