void-packages/srcpkgs/tracebox/template
Jürgen Buchmüller b8918e2a7d lua: update to 5.3.1
+ Rename lua and lua-devel to lua52 and lua52-devel
+ Modify packages depending on lua52 accordingly:
+ Many packages auto-detect lua52 files
+ Some packages need hints where / how to find lua52
+ One package (xmoto) downgraded to lua51, because it wouldn't find lua52
+ One package (vim) upgraded to lua (5.3.1)

There may be more packages upgradable without problems.
I didn't want to change too much in this move without the
respective package maintainers first taking a look.

Most notably conky-cli wouldn't work with lua52. I upgraded it
to 1.10.0 (same as conky) and tried to keep the flags the same
for the change from gnu-configure to cmake.
2015-10-02 11:24:59 +02:00

35 lines
1.4 KiB
Bash

# Template file for 'tracebox'
pkgname=tracebox
version=0.3.1
revision=2
_click_ver=2.0.1
_crafter_git=fed3a35e146a20ac2f02e876ccf5953b8fef422d
_crafter_ver=0.3.1git
build_style=gnu-configure
only_for_archs="i686 x86_64"
hostmakedepends="automake pkg-config libtool unzip"
makedepends="libpcap-devel json-c-devel lua52-devel"
short_desc="A middlebox detection tool"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
nocross=yes
homepage="http://www.tracebox.org/"
distfiles="
https://github.com/tracebox/tracebox/archive/v${version}.tar.gz>tracebox-${version}.tar.gz
https://github.com/bhesmans/click/archive/v${_click_ver}.tar.gz>click-${_click_ver}.tar.gz
https://github.com/pellegre/libcrafter/archive/${_crafter_git}.zip>libcrafter-${_crafter_ver}.zip"
checksum="
bd5b4faf83b9a8a092208a676c50064604ca7004f8ff747f663c7918ead0cc87
4e48591cb385000ee8daedf3cc18d4b00a9c5a142cc001e0780f0c7ebd713764
4254d83c986e6e5fcc989d82b021b6ad340aa221dd52a99c8560acc6c6906116"
pre_configure() {
# Do what ./bootstrap.sh would have done but without using git to pull submodules
mkdir -p ${wrksrc}/test/tools ${wrksrc}/noinst/libcrafter
mv -v ../click-${_click_ver} test/tools/click
mv -v ../libcrafter-${_crafter_git}/{.gitignore,README,libcrafter} noinst/libcrafter
rmdir -v ../libcrafter-${_crafter_git}
# Set missing AM_PROG_AR
sed -e "/AC_PROG_CXX/iAM_PROG_AR=${AR}" -i noinst/libcrafter/libcrafter/configure.ac
autoreconf --force --install --verbose
}