summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 094157b0997ece72848bbec8394c1b0f38358f2d (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
# Maintainer: Connor Behan <connor.behan@gmail.com>
# Contributor: TDY <tdy@archlinux.info>

pkgname=xbae
pkgver=4.60.4
pkgrel=2
pkgdesc="A Motif widget set containing the XbaeMatrix, XbaeCaption, and XbaeInput extensions"
arch=('i686' 'x86_64')
url="http://xbae.sourceforge.net/"
license=('MIT')
depends=('libxp' 'libxpm' 'openmotif')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('9690059474bb05191dccd041ff5052bd')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --mandir=/usr/share/man
  sed -i -e "s|xbaeEventToRowColumn(mw|xbaeEventToRowColumn((Widget)mw|g" src/Methods.c
  sed -i -e "s|1000|(XtPointer)1000|g" examples/tests/leak2.c
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

# vim:set ts=2 sw=2 et: