Merge branch 'master' of git.golem.linux.it:giomba/cnsparser

This commit is contained in:
giomba 2019-08-19 13:53:37 +02:00
commit 84394a0701
2 changed files with 31 additions and 0 deletions

4
pkg/deb/README.md Normal file
View File

@ -0,0 +1,4 @@
# deb package
# cd $REPOSITORY/build-lib
# checkinstall
checkinstall prompts some details about the package interactively

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)