summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a35ba9a2139a091bc00bb59b7e50d1fbc540aee (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
# Maintainer: Peter Ivanov <ivanovp@gmail.com>
# Contributor: Hussain Jasim <hussainmkj@gmail.com>
# Contributors: Flemming Madsen (arch at themadsens dot dk), S├ębastien Duquette <ekse.0x@gmail.com>
pkgname=tclx
pkgver=8.4.3
_tclsrcver=8.6.10
pkgrel=1
pkgdesc="Provides OS primitives, file scanning, data records etc. for Tcl"
url="https://github.com/flightaware/tclx"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
license=('BSD')
depends=('tcl=8.6.10' 'tk' 'libtirpc')
source=("https://github.com/flightaware/tclx/archive/v${pkgver}.tar.gz" \
        "http://downloads.sourceforge.net/sourceforge/tcl/tcl${_tclsrcver}-src.tar.gz" \
        "interperrorline.patch")
md5sums=('e4c9a627dcc10686ff46f7bd9abecbd3'
         '97c55573f8520bcab74e21bfd8d0aadc'
         '3254188674bfa4cdf58605d0d69586d0')

#prepare() {
#  patch -d $srcdir/${pkgname}8.4/generic < interperrorline.patch
#}

build() {
  cd $srcdir/${pkgname}-${pkgver}
  ./configure
  cp /usr/lib/tclConfig.sh $srcdir
  echo "TCL_SRC_DIR=$startdir/tcl$_tclsrcver" >> ../tclConfig.sh
  [ "$NOEXTRACT" == 1 ] || ./configure --prefix=/usr --enable-share \
                           --enable-gcc --with-tcl=$srcdir
  _tclsrc="TCL_SRC_DIR=$srcdir/tcl$_tclsrcver \
           TCL_TOP_DIR_NATIVE=$srcdir/tcl$_tclsrcver"
  CPPFLAGS+=" -I/usr/include/tirpc/"
  LDFLAGS+=" -ltirpc"
  make $_tclsrc || return 1
}

package() {
  cd $srcdir/${pkgname}-${pkgver}
  make $_tclsrc DESTDIR="$pkgdir" mandir="/usr/share/man" install
  install -D -m644 license.terms "$pkgdir/usr/share/licenses/$pkgname/license.terms"
}