summaryrefslogtreecommitdiff
path: root/extra/xaw3d/PKGBUILD
blob: 931513921d6240e8dd039e585ccf3d37faa0ad8e (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
# $Id: PKGBUILD 124576 2011-05-23 03:13:29Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=xaw3d
pkgver=1.5E
pkgrel=3
pkgdesc="Three-D Athena widgets"
arch=('i686' 'x86_64' 'mips64el')
url="http://directory.fsf.org/project/xaw3d/"
license=('MIT')
depends=('libxmu' 'libxpm')
makedepends=('imake')
options=('!makeflags')
source=(ftp://ftp.visi.com/users/hawkeyd/X/Xaw3d-${pkgver}.tar.gz
        Xaw3d-1.5E-xorg-imake.patch
	Xaw3d-1.5-i18n.patch
        Xaw3d-1.5-box.c.patch
       	Xaw3d-1.5-debian-fixes.patch
        xaw3d.patch
	Xaw3d-1.5E-warnings.patch
	Xaw3d-ia64.patch
	LICENSE)
md5sums=('29ecfdcd6bcf47f62ecfd672d31269a1'
         '2cca7950cf7d270609bc810b8996f0a9'
         'e7105bc1452f0c5f5d0bcdcf212aac0c'
         'c061ab65467766f5817752ef216e3cc2'
         '33bf0f1b52822b7293a3f45474178dfe'
         '5acb23e5a52c75e62a22aef59882df14'
         'c3aa4cbf95442081e7af810c13306cc9'
         'f766e8eb6371cbb1f68af4f2932dc118'
         '5b6b0242b3f53b7fe308e702abe28561')

build() {
  cd "${srcdir}/xc/lib/Xaw3d"
  patch -Np0 -i "${srcdir}/Xaw3d-1.5E-xorg-imake.patch"
  patch -Np4 -i "${srcdir}/xaw3d.patch"
  patch -Np4 -i "${srcdir}/Xaw3d-ia64.patch"
  patch -Np4 -i "${srcdir}/Xaw3d-1.5-i18n.patch"
  patch -Np4 -i "${srcdir}/Xaw3d-1.5-box.c.patch"
  patch -Np4 -i "${srcdir}/Xaw3d-1.5-debian-fixes.patch"
  patch -Np4 -i "${srcdir}/Xaw3d-1.5E-warnings.patch"
  ln -s .. X11
  xmkmf
  make CDEBUGFLAGS="${CFLAGS} -DARROW_SCROLLBAR"
}

package() {
  cd "${srcdir}/xc/lib/Xaw3d"
  make DESTDIR="${pkgdir}" SHLIBDIR=/usr/lib INCDIR=/usr/include install
  install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}