[pkg] deb creation with script

This commit is contained in:
giomba 2019-08-17 15:25:33 +02:00
parent 682a8d6a2c
commit d326fcb322
1 changed files with 27 additions and 0 deletions

27
pkg/deb/create-deb.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
SLASHES=$(echo $0 | tr -d -c '/' | awk '{ print length($0) }')
if [ $SLASHES != 1 ]; then
echo -e "run in my directory" >&2
exit 1
fi
cd ../..
mkdir -p build-lib
cd build-lib
qmake ../lib
make -j $(nproc)
checkinstall --type debian \
--install=no \
--pkgname=cnsparser \
--pkgversion=$(date +%Y.%m) \
--pkgrelease=1 \
--arch=x86_64 \
--pkglicense=GPL \
--maintainer=$(git config user.name)