| git.druid.rocks | index | druid520 | ports | ports/ | textproc/ | btf/ | pkg.conf |
ports/textproc/btf/pkg.conf
pkg_name="btf"
pkg_license="fmc"
pkg_ver="git"
pkg_tags="btf"
pkg_pref="50"
pkg_deps="%perl %shell %coreutils"
pkg_fetch="git:git://git.druid.rocks/druid520/btf.git"
install:
mkdir -p $MP_PREFIX/bin
# btf.pm is a shared module, not a standalone tool -- it has to land
# flat alongside the four executables below, not in some separate
# lib dir, because each of them finds it via "use lib
# \"\$FindBin::Bin\"" (wherever the SCRIPT ITSELF is running from),
# not @INC or any installed-module convention.
cp btf.pm $MP_PREFIX/bin/btf.pm
for f in btf2html btf2man md2btf txt2btf; do
cp "$f.pl" "$MP_PREFIX/bin/$f"
chmod +x "$MP_PREFIX/bin/$f"
done
remove:
rm -f $MP_PREFIX/bin/btf.pm $MP_PREFIX/bin/btf2html $MP_PREFIX/bin/btf2man \
$MP_PREFIX/bin/md2btf $MP_PREFIX/bin/txt2btf