# Maintainer: PktSurf app=comgt version=0.32 build=2sml homepage="https://sourceforge.net/projects/comgt" download="https://sourceforge.net/projects/comgt/files/comgt/$version/comgt.$version.tgz" desc="Utility to interact with 2G, 3G and LTE modems via standard AT command set" requires="musl" prepbuilddir() { mkandenterbuilddir rm -rf "$app.$version" tar xf $srcdir/$app.$version.tgz cd "$app.$version" fixbuilddirpermissions applypatch $srcdir/002-termios.patch } build() { make install -Dm 755 comgt $pkg/usr/bin/comgt mkdir -p $pkg/etc/comgt/examples $pkg/usr/share/man/man1 cp *.1 $pkg/usr/share/man/man1/ cp scripts/* $pkg/etc/comgt/examples/ cp $srcdir/balance.* $pkg/etc/comgt/examples/ cp $srcdir/LICENSE $pkgdocs/ mkfinalpkg } sha512sums=" 862e52e4904b57e7e7b551da36c82807dbc16ad505b4e5aac0b1a03a2445919e43b9f8e271f046b179348ea733485d0901461512f83165e3e4751b096c43d3aa comgt.0.32.tgz f5fdea56c91badefedd470f3c68acb492b0885bd632f98f2a7c30c23e9bd2641e088da06b6ff276a8e40c796b68985791cf7c30c599543856431f3a9b2e35947 002-termios.patch "