blob: efb64e0ff34294bbf69a59c5763bcfe09abd611b (
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
|
# Maintainer: tuftedocelot <tuftedocelot@fastmail.fm>
# Co-Maintainer: Davide Girardi <davidegirardi googlesmtp>
# Contributor: Davbo <dave@davbo.org>
pkgname=x3270
pkgver=4.5ga5
pkgrel=1
pkgpath=04.05
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=('01576fa58598ccdd3d366febfaef61e3d1de93eb60a93f9ac6ba5faf84144c6f'
'bb3f1a301ca4f6d6d4f4cafe451945a55a9af7995d712a0f314fc58dfb16da6f')
build() {
# Time of the last modification to the source code, see:
# - https://reproducible-builds.org/docs/source-date-epoch/
# - https://reproducible-builds.org/specs/source-date-epoch/
#
# It should be something like:
# export SOURCE_DATE_EPOCH=$(stat --format='%Y' $srcdir/suite3270-${pkgver:0:3}/configure)
#
# but there is a bug in `mkversion.py`. I sent a patch to the author.
# Let's use this workaround in the mean time.
unset SOURCE_DATE_EPOCH
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}/Common/x3270-icon2.xpm $pkgdir/usr/share/pixmaps/
}
|