summaryrefslogtreecommitdiffstats
path: root/abs/core/imake/PKGBUILD
blob: 9a879d865c93d097a309f43da151c6a47a4848ea (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
# $Id: PKGBUILD 87585 2010-08-17 07:28:34Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=imake
pkgver=1.0.3
pkgrel=2
pkgdesc="X.Org imake program and related utilities"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=(glibc)
makedepends=(pkgconfig xproto perl)
optdepends=('perl: for mkhtmlindex')
source=(http://xorg.freedesktop.org/releases/individual/util/imake-1.0.3.tar.bz2
	http://xorg.freedesktop.org/releases/individual/util/gccmakedep-1.0.2.tar.bz2
	http://xorg.freedesktop.org/releases/individual/util/lndir-1.0.2.tar.bz2
	http://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.2.tar.bz2
	http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.3.tar.bz2
	linuxconfig.patch
	xorg-cf-files-1.0.2-xprint.patch
	LICENSE)
md5sums=('ff553c4646edcc9e76b7308991ad421a'
         'b533c0771dbbaf9b041ff35bb941d3a2'
         '619acbb2ed766d7762f02328513b1f72'
         '62e58330fe8d1e3e28c7a45779833a48'
         '10546b5ddda3cdda7950bb56bf98e0ea'
         'b3385d8efbbe7c7fc50ed3a96ce37a16'
         '82356cfc8a761c85b0b37736fc91f604'
         'f5767133ef7a98a0bfa15139e0e3d32e')

build() {
  cd ${srcdir}/xorg-cf-files-1.0.3*
  patch -Np1 -i "${srcdir}/linuxconfig.patch" || return 1
  patch -Np1 -i "${srcdir}/xorg-cf-files-1.0.2-xprint.patch" || return 1
  cd "${srcdir}"
  for i in *; do
    if [ -d "${i}" ]; then
      pushd "${i}"
      ./configure --prefix=/usr --mandir=/usr/share/man || return 1
      make || return 1
      make DESTDIR="${pkgdir}" install || return 1
      popd
    fi
  done
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}