summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 750f17cb8f5592ec6b2da7d1e5b4ec226ac0564a (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
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=folder-color-common
_pkgname=${pkgname%-common}
pkgver=0.0.90
pkgrel=1
pkgdesc="Icons and translations for Folder Color"
arch=('any')
url="https://github.com/costales/folder-color"
license=('GPL3')
depends=('python' 'hicolor-icon-theme')
makedepends=('git' 'python-distutils-extra')
conflicts=("$_pkgname-bzr")
_commit=e76d1d92e2d1418fa1dcd3f418a8919a2842140d
source=("git+https://github.com/costales/folder-color.git#commit=$_commit")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname/install_scripts"
  ./common.sh
}

build() {
  cd "$srcdir/$_pkgname"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  export PYTHONHASHSEED=0
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build

  # DistUtilsExtra fails to install locale files
  install -d "$pkgdir/usr/share/locale"
  cp -r build/mo/* "$pkgdir/usr/share/locale"
}