python-pid/main.sh

28 lines
570 B
Bash
Raw Normal View History

2024-07-30 16:56:18 +03:00
#! /bin/bash
set -e
2024-12-10 22:42:26 +03:00
VERSION="4.13.2"
2024-07-30 16:56:18 +03:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-03-08 19:53:07 +03:00
# Clone Upstream
2024-12-10 23:36:33 +03:00
git clone --depth=1 https://github.com/antlr/antlr4 -b "$VERSION"
cp -rvf ./antlr4/runtime/Python3 ./python3-antlr4
2024-12-10 22:42:26 +03:00
cp -rvf ./debian ./python3-antlr4/
cd ./python3-antlr4
2023-03-08 19:53:07 +03:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-12-10 22:42:26 +03:00
LOGNAME=root dh_make --createorig -y -l -p python3-antlr4_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-05-24 18:11:09 +03:00
dpkg-buildpackage --no-sign
2023-03-08 19:53:07 +03:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/