SDRPlusPlus/make_debian_package.sh

30 wiersze
788 B
Bash
Czysty Zwykły widok Historia

2020-12-23 19:58:02 +00:00
#!/bin/sh
# Create directory structure
echo Create directory structure
2020-12-24 13:43:14 +00:00
mkdir sdrpp_debian_amd64
mkdir sdrpp_debian_amd64/DEBIAN
2020-12-23 19:58:02 +00:00
# Create package info
echo Create package info
2020-12-24 13:43:14 +00:00
echo Package: sdrpp >> sdrpp_debian_amd64/DEBIAN/control
2022-07-08 18:31:53 +00:00
echo Version: 1.1.0$BUILD_NO >> sdrpp_debian_amd64/DEBIAN/control
2020-12-24 13:43:14 +00:00
echo Maintainer: Ryzerth >> sdrpp_debian_amd64/DEBIAN/control
echo Architecture: all >> sdrpp_debian_amd64/DEBIAN/control
echo Description: Bloat-free SDR receiver software >> sdrpp_debian_amd64/DEBIAN/control
echo Depends: $2 >> sdrpp_debian_amd64/DEBIAN/control
2020-12-23 19:58:02 +00:00
2021-02-11 23:15:35 +00:00
# Copying files
ORIG_DIR=$PWD
cd $1
make install DESTDIR=$ORIG_DIR/sdrpp_debian_amd64
cd $ORIG_DIR
2020-12-23 19:58:02 +00:00
# Create package
2021-02-11 23:15:35 +00:00
echo Create package
2020-12-24 13:43:14 +00:00
dpkg-deb --build sdrpp_debian_amd64
# Cleanup
echo Cleanup
rm -rf sdrpp_debian_amd64