2017-08-29 17:17:25 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PKG_PATH=$1
|
|
|
|
|
|
|
|
apt-get -q update
|
|
|
|
|
|
|
|
cd $PKG_PATH
|
|
|
|
|
2020-05-07 17:15:31 +02:00
|
|
|
echo "--------------------------------"
|
2017-08-29 17:17:25 +02:00
|
|
|
echo "Installing build-dependencies..."
|
|
|
|
|
2020-05-11 04:24:44 +02:00
|
|
|
LOG="/var/log/mk-build-deps.log"
|
|
|
|
mk-build-deps -i -t "apt-get --no-install-recommends -y" >> $LOG 2>&1 \
|
|
|
|
|| { echo "mk-build-deps failed, logs are in $LOG"; exit 1; }
|
2017-08-29 17:17:25 +02:00
|
|
|
rm -f *build-deps*_all.deb
|
|
|
|
|
2020-05-07 17:15:31 +02:00
|
|
|
echo "--------------------------------"
|
2017-08-29 17:17:25 +02:00
|
|
|
echo "Creating source package..."
|
|
|
|
|
|
|
|
# Creating source package without signing it
|
2020-05-14 19:16:03 +02:00
|
|
|
debuild --no-lintian -S -sa -uc
|
2017-08-29 17:17:25 +02:00
|
|
|
|
|
|
|
# Be sure to clean directory
|
|
|
|
debclean
|