mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-23 12:18:37 -05:00
12 lines
433 B
Bash
12 lines
433 B
Bash
|
#!/bin/sh
|
||
|
# found at https://github.com/paralect/robomongo/blob/master/install/linux/fixup_deb.sh.in
|
||
|
set -e
|
||
|
mkdir fix_up_deb
|
||
|
dpkg-deb -x @CPACK_PACKAGE_FILE_NAME@.deb fix_up_deb
|
||
|
dpkg-deb --control @CPACK_PACKAGE_FILE_NAME@.deb fix_up_deb/DEBIAN
|
||
|
rm @CPACK_PACKAGE_FILE_NAME@.deb
|
||
|
chmod 0644 fix_up_deb/DEBIAN/md5sums
|
||
|
find -type d -print0 | xargs -0 chmod 755
|
||
|
fakeroot dpkg -b fix_up_deb @CPACK_PACKAGE_FILE_NAME@.deb
|
||
|
rm -rf fix_up_deb
|