updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / glib2-clang / PKGBUILD
blobcdbafdd3fa6f6ba92f2bf8ae4abbefaaa9dc78e6
1 # Contributor: ogaby < ogaby @ web dot de  >
2 pkgname=glib2-clang
3 pkgver=2.24.0
4 pkgrel=1
5 pkgdesc="Common C routines used by GTK+ and QT compiled with clang"
6 url="http://www.gtk.org/"
7 arch=(i686 x86_64)
8 license=('custom')
9 depends=('pcre>=8.02' 'clang>2.6')
10 makedepends=('pkgconfig')
11 options=('!libtool' '!docs')
12 source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.24/glib-${pkgver}.tar.bz2
13         glib2.sh
14         glib2.csh)
15 sha256sums=('7b6aa2cf21e734a6092a711bf196b8d2ddc589b971f93337610c10fa4f23400d'
16             '9456872cdedcc639fb679448d74b85b0facf81033e27157d2861b991823b5a2a'
17             '8d5626ffa361304ad3696493c0ef041d0ab10c857f6ef32116b3e2878ecf89e3')
19 build() {
20   cd "${srcdir}/glib-${pkgver}"
21   ./configure CC=clang --prefix=/usr --enable-static --enable-shared \
22       --with-pcre=system --disable-fam || return 1
23   make || return 1
24   make DESTDIR="${pkgdir}" install || return 1
26   install -d "${pkgdir}/etc/profile.d"
27   install -m755 "${srcdir}/glib2.sh" "${pkgdir}/etc/profile.d/" || return 1
28   install -m755 "${srcdir}/glib2.csh" "${pkgdir}/etc/profile.d/" || return 1