summaryrefslogtreecommitdiff
path: root/pcr/xfce-theme-manager/PKGBUILD
blob: 5c028fbb52cf6e71b1a5ba512be9998df1b2a5d7 (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
# Maintainer (AUR): Mario Finelli <mario dot finelli at yahoo dot com>
# Contributor (AUR): Martin F. Schumann <mfs at mfs dot name>

# parabola changes and rationale:
#  no changes.

pkgname=xfce-theme-manager
_pkgname=Xfce-Theme-Manager
pkgver=0.3.7
pkgrel=2
pkgdesc="A theme manager allowing easy configuration of themes, window borders, controls, icons and cursors for Xfce."
arch=('i686' 'x86_64' 'armv7h')
url="http://khapplications.darktech.org/pages/apps.html#themeed"
license=("GPL3")
depends=('gdk-pixbuf2' 'cairo' 'libxcursor' 'libxfce4ui')
optdepends=('xfce4-composite-editor: A simple GUI to tweak xfwm, can be launched from xfce-theme-manager')
makedepends=('pkg-config' 'make' 'autoconf')
source=("https://dl.dropboxusercontent.com/s/bh16k3am8q7zvat/$_pkgname-${pkgver}.tar.gz")
sha256sums=('5cb5970cb08bdf76a1ae326d974f1d504e3c94e04a2737ecfa7703fe96e47f53')

build() {
  cd "$srcdir"/$_pkgname-$pkgver
  ./autogen.sh --prefix="$pkgdir"/usr
}

package() {
  install -m 755 -d "$pkgdir"/usr/bin "$pkgdir"/usr/share/applications "$pkgdir"/usr/share/doc/xfce-theme-manager
  sed -i 's#/PREFIX/share/Xfce\\-Theme\\-Manager/scripts#/usr/share/xfce\\-theme\\-manager/scripts#g' "$srcdir"/$_pkgname-$pkgver/$_pkgname/resources/man/*
  cd "$srcdir"/$_pkgname-$pkgver
  sed -i 's/Name=Xfce-Theme-Manager/Name=Xfce Theme Manager/g;s/^Comment.*/Comment=Control Xfce4 Themes, Icons, Cursors, Wallpapers and more/g' $_pkgname/resources/pixmaps/$_pkgname.desktop
  make CXXFLAGS="$CXXFLAGS -O3 -Wall `pkg-config --cflags --libs glib-2.0` `pkg-config --cflags --libs gdk-2.0` `pkg-config --cflags --libs gtk+-2.0` `pkg-config --cflags --libs xcursor` `pkg-config --cflags --libs gthread-2.0`" PREFIX="$pkgdir/usr" install
  install -m 644 README* "$pkgdir"/usr/share/doc/$pkgname/
  install -m 644 ChangeLog* "$pkgdir"/usr/share/doc/$pkgname/
  mv "$pkgdir"/usr/share/{$_pkgname,$pkgname}
  mv "$pkgdir"/usr/share/applications/{$_pkgname,$pkgname}.desktop
}