summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9d18db1f9f0484702aea3e4f8b37e4885c347eb (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
pkgname=human-theme-gtk
pkgver=2.3.0
pkgrel=1
pkgdesc="Human theme for GTK"
arch=('any')
url='https://github.com/luigifab/human-theme'
license=('GPL3' 'LGPL2' 'CCBYSA')
depends=()
optdepends=('gtk-engine-murrine: for gtk2')
source=("https://github.com/luigifab/human-theme/archive/v${pkgver}/human-theme-${pkgver}.tar.gz")
sha256sums=("360fbc73e69b3b4e659705e18f541f1d3bb1fdac63e1d7fafe3a3e94dc87d6ec")

prepare() {
  mv "human-theme-$pkgver" "$pkgname-$pkgver"
}

package() {
  cd "$pkgname-$pkgver"

  # the entire source code is GPL-3.0-or-later, except metacity-1/* which is LGPL-2.1-or-later,
  # and gtk-2.0/* which is CC-BY-SA-3.0-or-later
  install -dm 755 "$pkgdir/usr/share/themes/"
  cp -a src/human-theme/           "$pkgdir/usr/share/themes/"
  cp -a src/human-theme-blue/      "$pkgdir/usr/share/themes/"
  cp -a src/human-theme-green/     "$pkgdir/usr/share/themes/"
  cp -a src/human-theme-orange/    "$pkgdir/usr/share/themes/"

  install -Dpm 644 data/profile.sh "$pkgdir/etc/profile.d/$pkgname.sh"

  install -Dpm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}