SDRPlusPlus/make_debian_package.sh

30 lines
788 B
Bash
Raw Normal View History

2020-12-23 20:58:02 +01:00
#!/bin/sh
# Create directory structure
echo Create directory structure
2020-12-24 14:43:14 +01:00
mkdir sdrpp_debian_amd64
mkdir sdrpp_debian_amd64/DEBIAN
2020-12-23 20:58:02 +01:00
# Create package info
echo Create package info
2020-12-24 14:43:14 +01:00
echo Package: sdrpp >> sdrpp_debian_amd64/DEBIAN/control
2022-07-08 20:31:53 +02:00
echo Version: 1.1.0$BUILD_NO >> sdrpp_debian_amd64/DEBIAN/control
2020-12-24 14:43:14 +01: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 20:58:02 +01:00
2021-02-12 00:15:35 +01:00
# Copying files
ORIG_DIR=$PWD
cd $1
make install DESTDIR=$ORIG_DIR/sdrpp_debian_amd64
cd $ORIG_DIR
2020-12-23 20:58:02 +01:00
# Create package
2021-02-12 00:15:35 +01:00
echo Create package
2020-12-24 14:43:14 +01:00
dpkg-deb --build sdrpp_debian_amd64
# Cleanup
echo Cleanup
rm -rf sdrpp_debian_amd64