summaryrefslogtreecommitdiff
path: root/extra/imake/PKGBUILD
blob: 8f943c5ce935c9e87f65a795bb8dbd493dad0602 (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
47
48
49
50
51
52
53
54
55
# $Id: PKGBUILD 191324 2013-07-23 16:42:27Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=imake
pkgver=1.0.6
pkgrel=1
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-${pkgver}.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.3.tar.bz2'
        'http://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.5.tar.bz2'
        'http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-1.0.5.tar.bz2'
        'linuxconfig.patch'
        'LICENSE')
sha1sums=('a54c025d7ac9894b6bc919d13454c6adb12ae140'
          'a3d971a507a460233afd8ed46e9f06135fed634d'
          'fc71a6ff2cc0a1065cfb608796ffd6b4f0ce76fe'
          '2599afa039d2070bae9df6ce43da288b3a4adf97'
          'ae22eb81d56d018f0b3b149f70965ebfef2385fd'
          '72f2d4cc4d4cc5f85ba6982718ae1bbb7e56e0d0'
          'c5ecffb25ad079ba3858e3aec047d046df603a89')


prepare() {
  cd xorg-cf-files-1.0.5
  patch -p1 -i "${srcdir}/linuxconfig.patch"
}

build() {
  for i in *; do
    if [ -d "${i}" ]; then
      pushd "${i}"
      ./configure --prefix=/usr --mandir=/usr/share/man
      make
      popd
    fi
  done
}

package() {
  for i in *; do
    if [ -d "${i}" ]; then
      pushd "${i}"
      make DESTDIR="${pkgdir}" install
      popd
    fi
  done
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}