2024-07-29 15:21:58 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="2.4.3"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-04-29 17:27:11 +02:00
|
|
|
# Clone Upstream
|
2024-07-29 15:21:58 +02:00
|
|
|
git clone --recurse-submodules https://github.com/Vanilla-OS/apx -b v"$VERSION"
|
2023-07-13 16:31:54 +02:00
|
|
|
cp -rvf ./debian ./apx/
|
2023-04-29 17:27:11 +02:00
|
|
|
cd ./apx
|
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-29 15:21:58 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p apx_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-04-29 17:27:11 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|