summaryrefslogtreecommitdiff
path: root/community/gtk-chtheme/PKGBUILD
blob: 1fa83fed471552136c9fe15dc5b20ffac2c98d9a (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
# $Id: PKGBUILD 115833 2014-07-17 18:34:00Z jsteel $
# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=gtk-chtheme
pkgver=0.3.1
pkgrel=8
pkgdesc="A little program to change your gtk+ 2.0 theme"
arch=('i686' 'x86_64')
license=('GPL')
url="http://plasmasturm.org/programs/gtk-chtheme/"
depends=('gtk2')
source=(http://plasmasturm.org/programs/$pkgname/$pkgname-$pkgver.tar.bz2)
md5sums=('f688053bf26dd6c4f1cd0bf2ee33de2a')

build() {
  cd "$srcdir"/$pkgname-$pkgver

  # Fix xdg compliancy
  sed -i 's|-DGTK.*||' Makefile
  sed -i 's|theme_list(g_.*|&\n\tread_theme_list(g_strconcat(g_get_user_data_dir(), "/themes", NULL));|' main.c

  make
}

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

  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}