Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
27
Src/external_dependencies/cpr/package-build/build-package.sh
Normal file
27
Src/external_dependencies/cpr/package-build/build-package.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRC_DIR=$1
|
||||
|
||||
LIB='libcpr'
|
||||
|
||||
LIB_DIR="${LIB}_${VERSION}"
|
||||
DEBIAN_DIR="${LIB_DIR}/debian"
|
||||
|
||||
ARCHIVE_NAME="$LIB_DIR.orig.tar.gz"
|
||||
|
||||
echo -e "Preparing tar archive and directory\n"
|
||||
cp -r $SRC_DIR $LIB_DIR
|
||||
|
||||
tar --exclude-vcs -czf $ARCHIVE_NAME $LIB_DIR
|
||||
tar -xzf $ARCHIVE_NAME
|
||||
|
||||
cd $LIB_DIR
|
||||
|
||||
echo -e "\n\nCopying prepared debian files to directory\n"
|
||||
mkdir debian
|
||||
cp -r package-build/debian-libcpr/* debian/
|
||||
sed -i "s/\%VERSION/$VERSION/g" debian/changelog
|
||||
sed -i "s/\%DATE/$(date -R)/g" debian/changelog
|
||||
|
||||
echo -e "\n\nCalling debuild\n"
|
||||
debuild
|
Loading…
Add table
Add a link
Reference in a new issue