smlinux/net/comgt/comgt.SMBuild
2022-02-13 15:56:03 +05:30

33 lines
981 B
Text
Executable file

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