summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff06578034803fcb657ee47110f397880ab1eac2 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>

pkgname=xde-theme-git
_pkgname=xde-theme
pkgver=1.5.r1.ga3b2b0c
pkgrel=1
pkgdesc="Theme and style setting utilities for the X Desktop Environment (XDE)"
arch=('i686' 'x86_64')
url="http://github.com/bbidulock/xde-theme"
groups=('xde-git')
license=('GPL3')
provides=($_pkgname=$pkgver)
conflicts=($_pkgname)
depends=('libxinerama' 'gdk-pixbuf-xlib' 'libxrandr' 'libsm' 'imlib2')
makedepends=('git')
optdepends=('xde-styles: for styles that work with xde-style')
source=("$pkgname::git+https://github.com/bbidulock/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd $pkgname
  ./autogen.sh
}

build() {
 cd $pkgname
 ./configure
  # Fight unused direct deps
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/      func_append compile_command " -Wl,-O1,--as-needed"\n      func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
 make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}

# vim: et sw=2: