# Maintainer: tuftedocelot # Co-Maintainer: Davide Girardi # Contributor: Davbo pkgname=x3270 pkgver=4.2ga10 pkgrel=1 pkgpath=04.02 pkgdesc="An IBM 3270 terminal emulator for the X Window System" arch=('i686' 'x86_64') url="http://x3270.bgp.nu/" license=('BSD' 'MIT') depends=('openssl' 'libxaw' 'xorg-mkfontdir' 'tcl') makedepends=('openssl' 'libx11' 'libxaw' 'libxt' 'xbitmaps' 'xorg-bdftopcf' 'readline' 'ncurses' 'm4') backup=(etc/x3270/ibm_hosts) install=x3270.install source=(http://x3270.bgp.nu/download/$pkgpath/suite3270-$pkgver-src.tgz x3270.desktop) sha256sums=('db513225f074144a5a0221d57ede37cca1468c2c2d158ea09981f50012ebdbe7' 'bb3f1a301ca4f6d6d4f4cafe451945a55a9af7995d712a0f314fc58dfb16da6f') build() { cd $srcdir/suite3270-${pkgver:0:3} ./configure --enable-unix --enable-c3270 --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc --with-fontdir=/usr/share/fonts/3270 make -j$(grep processor -c /proc/cpuinfo) all || return 1 } package() { cd $srcdir/suite3270-${pkgver:0:3} make DESTDIR=$pkgdir/ install || return 1 make DESTDIR=$pkgdir/ install.man || return 1 chmod 644 $pkgdir/etc/x3270/ibm_hosts mkdir $pkgdir/usr/share/applications mkdir $pkgdir/usr/share/pixmaps install -m644 $srcdir/x3270.desktop $pkgdir/usr/share/applications/ install -m644 $srcdir/suite3270-${pkgver:0:3}/x3270/x3270-icon2.xpm $pkgdir/usr/share/pixmaps/ }