From 48bb24f32c7e1c0e8bfe76d5e4219ac151123d23 Mon Sep 17 00:00:00 2001 From: mobian Date: Mon, 5 May 2025 11:08:40 +0100 Subject: [PATCH] Initial commit. --- 020_atinout.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 020_atinout.sh diff --git a/020_atinout.sh b/020_atinout.sh new file mode 100644 index 0000000..e1c76f6 --- /dev/null +++ b/020_atinout.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +# Exit on any error +set -e + +# Install build dependencies +sudo apt-get update +sudo apt-get install -y checkinstall build-essential wget tar gzip + +# Create temporary directory for building +WORKDIR=$(mktemp -d) +cd "$WORKDIR" + +# Download and extract source +wget https://sourceforge.net/projects/atinout/files/latest/download -O atinout.tar.gz +tar xfz atinout.tar.gz +cd "$(ls -d */)" + +# Modify Makefile to remove -Werror flag +sed -i 's/-Werror//g' Makefile + +# Create package using checkinstall +sudo checkinstall --pkgname=atinout \ + --pkgversion=$(date +%Y%m%d) \ + --pkgrelease=1 \ + --maintainer="your@email.com" \ + --nodoc \ + --strip=no \ + --backup=no \ + --reset-uids=yes \ + --fstrans=no \ + --default \ + make install + +# Clean up temporary files +cd .. +rm -rf "$WORKDIR" + +echo "Package created successfully!"