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
|
2021-08-21 16:03:34 +00:00
|
|
|
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
|
2021-06-30 12:03:30 +00:00
|
|
|
rm -rf sdrpp_debian_amd64
|