summaryrefslogtreecommitdiff
path: root/libre/faience-icon-theme-libre/PKGBUILD
blob: 4ce1bb671bd566a337364df5a9a786fea692aad4 (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
49
50
51
52
53
54
55
56
# $Id: PKGBUILD 85250 2013-02-28 09:59:24Z alucryd $
# Maintainer (Arch): Maxime Gauduin <alucryd@gmail.com>
# Contributor (Arch): Ner0 <darkelfdarkelf666@yahoo.co.uk>
# Contributor (Arch): Sander Deryckere  <sanderd17@gmail.com>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor: Márcio Silva <coadde@parabola.nu>

_pkgname=faience-icon-theme
pkgname=faience-icon-theme-libre
pkgver=0.5.1
pkgrel=2
pkgdesc="An icon theme based on Faenza, without nonfree distros and application icons (Parabola rebranded)"
url="http://tiheum.deviantart.com/art/Faience-icon-theme-255099649"
license=('GPL3')
arch=('any')
replaces=($_pkgname)
conflicts=($_pkgname)
provides=($_pkgname=$pkgver)
depends=('faenza-icon-theme')
options=('!strip')
source=("http://ppa.launchpad.net/tiheum/equinox/ubuntu/pool/main/f/${_pkgname}/${_pkgname}_${pkgver}.tar.gz"
        'start-here-parabola-symbolic.svg')
sha256sums=('da4e6e921c465caeb8904d4fc6a183b173c8000c08abce625b5b6739f5a0867a'
            'ad3a47c9545358046b8ef1695cbc6effc913d7affbf27017744419d33e66aea6')

prepare() {
  cd "${srcdir}"/${_pkgname}-${pkgver%.*}
  rm -rv debian

  # remove nonfree distros and application logos
  for nonfree in archlinux debian fedora frugalware gentoo linux-mint mandriva opensuse redhat slackware ubuntu flash rpmdrake skype; do
   find -name *$nonfree* -delete
  done

  # add the Parabola GNU/Linux-libre logo to the source code
  cp -a "$srcdir/start-here-parabola-symbolic.svg" Faience/places/scalable

  # set the Parabola GNU/Linux-libre start menu logo
  cd Faience/places/scalable
  ln -sf start-here{-parabola-symbolic,-symbolic}.svg
}

package() {
  cd "${srcdir}"/${_pkgname}-${pkgver%.*}

# Install
  install -dm 755 "${pkgdir}"/usr/share/icons
  cp -dr --no-preserve=ownership Faience* "${pkgdir}"/usr/share/icons/

# Fix permissions
  find "${pkgdir}" -type d -exec chmod 755 {} +
  find "${pkgdir}" -type f -exec chmod 644 {} +
}

# vim: ts=2 sw=2 et: