diff --git a/rules/termcap/common.bash b/rules/termcap/common.bash new file mode 100644 index 0000000..dc4d9ab --- /dev/null +++ b/rules/termcap/common.bash @@ -0,0 +1,14 @@ +version=\ +( + '1.3.1' +) + +url=\ +( + "ftp://ftp.gnu.org/gnu/termcap/termcap-$version.tar.gz" +) + +md5=\ +( + 'ffe6f86e63a3a29fa53ac645faaabdfa' +) diff --git a/rules/termcap/default.bash b/rules/termcap/default.bash index bbd7082..87bd0bb 100644 --- a/rules/termcap/default.bash +++ b/rules/termcap/default.bash @@ -1,17 +1,4 @@ -version=\ -( - '1.3.1' -) - -url=\ -( - "ftp://ftp.gnu.org/gnu/termcap/termcap-$version.tar.gz" -) - -md5=\ -( - 'ffe6f86e63a3a29fa53ac645faaabdfa' -) +source "$pkg_common" configure() { @@ -35,7 +22,7 @@ host_install() target_install() { - # Libs: + # Libs: for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtermcap*; do if [ -L "$f" ]; then $cmd_cp "$f" "$cfg_dir_rootfs/usr/lib" diff --git a/rules/termcap/host.bash b/rules/termcap/host.bash new file mode 100644 index 0000000..4899fbb --- /dev/null +++ b/rules/termcap/host.bash @@ -0,0 +1,19 @@ +source "$pkg_common" + +configure() +{ + ./configure \ + --prefix="$cfg_dir_toolchain" \ + --enable-shared \ + --disable-nls +} + +build() +{ + $cmd_make +} + +host_install() +{ + $cmd_make install +}