2019-01-24 23:27:58 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gnucap/gnucap.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="The Gnu Circuit Analysis Package"
|
|
|
|
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
|
2019-01-26 00:10:08 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2021-09-12 16:07:52 +02:00
|
|
|
TERMUX_PKG_VERSION=20210107
|
2021-10-23 11:59:16 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2019-01-24 23:27:58 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://gitlab.com/gnucap/gnucap/-/archive/${TERMUX_PKG_VERSION}/gnucap-${TERMUX_PKG_VERSION}.tar.gz
|
2021-09-12 16:07:52 +02:00
|
|
|
TERMUX_PKG_SHA256=d2c24a66c7e60b379727c9e9487ed1b4a3532646b3f4cc03c6a4305749e3348b
|
2019-06-20 13:22:57 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, readline"
|
2019-07-31 21:50:17 +02:00
|
|
|
TERMUX_PKG_BREAKS="gnucap-dev"
|
|
|
|
TERMUX_PKG_REPLACES="gnucap-dev"
|
2019-08-13 15:10:55 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
2019-01-24 23:27:58 +01:00
|
|
|
|
|
|
|
termux_step_host_build () {
|
|
|
|
cp -r $TERMUX_PKG_SRCDIR/* .
|
|
|
|
./configure
|
|
|
|
(cd lib && make)
|
|
|
|
(cd modelgen && make)
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2019-01-25 23:45:29 +01:00
|
|
|
sed -i "s%@TERMUX_PKG_HOSTBUILD_DIR@%$TERMUX_PKG_HOSTBUILD_DIR%g" $TERMUX_PKG_SRCDIR/apps/Make1
|
2019-01-24 23:27:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_configure () {
|
|
|
|
$TERMUX_PKG_SRCDIR/configure --prefix=$TERMUX_PREFIX
|
|
|
|
}
|