Skip to content

Commit

Permalink
fix build script, first release
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Feb 14, 2021
1 parent 5dfb2b6 commit 77bd2d1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

VERSION="0.0.1-1"
# get distro information
. /etc/os-release
FGET_VERSION="1.0-0"

# install build dependencies
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
Expand All @@ -22,7 +22,7 @@ unzip -j CRYPTOPP_8_4_0.zip
# Build cryptopp
mkdir cmake-build && cd cmake-build || exit
cmake ..
make static
make cryptopp-static
make install

# Build fget
Expand All @@ -33,18 +33,18 @@ make
# Ubuntu / Debian systems
# Build .deb
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
mkdir -p fget_$VERSION/usr/local/bin
mv fget fget_$VERSION/usr/local/bin
mkdir fget_$VERSION/DEBIAN
mkdir -p fget_$FGET_VERSION/usr/local/bin
mv fget fget_$FGET_VERSION/usr/local/bin
mkdir fget_$FGET_VERSION/DEBIAN
echo "
Package: fget
Version: $VERSION
Architecture: all
Section: base
Priority: optional
Depends: libc6 (>= $(dpkg-query --showformat='${Version}' --show libc6)), libssl1.1 (>= 1.1)
Maintainer: bain <bain@bain.cz>
Description: fget is a utility for downloading from f.bain-like websites"\
> fget_$VERSION/DEBIAN/control
dpkg --build fget_$VERSION
Package: fget
Version: $FGET_VERSION
Architecture: all
Section: base
Priority: optional
Depends: libc6 (>= $(dpkg-query --showformat='${Version}' --show libc6)), libssl1.1 (>= 1.1)
Maintainer: bain <bain@bain.cz>
Description: fget is a utility for downloading from f.bain-like websites"\
> fget_$FGET_VERSION/DEBIAN/control
dpkg --build fget_$FGET_VERSION
fi

0 comments on commit 77bd2d1

Please sign in to comment.