package-pipelines-miscellan.../repo.s3lph.me-apt-source/package.sh
s3lph 01f307a519
Some checks failed
/ ansible-semaphore (push) Successful in 1m23s
/ atlasswprobe (push) Successful in 9m45s
/ daliserver (push) Successful in 2m19s
/ forgejo (push) Successful in 6m1s
/ forgejo-runner (push) Successful in 1m32s
/ http-mqtt-bridge (push) Successful in 4m50s
/ keycloak-23 (push) Successful in 9m36s
/ linux-diversion-ath-regd-optional (push) Successful in 17m53s
/ lottieconverter (push) Successful in 57s
/ matterbridge (push) Successful in 3m52s
/ matrix-element-web (push) Failing after 41s
/ matrix-hydrogen (push) Failing after 33s
/ matrix.to (push) Successful in 6m9s
/ maubot (push) Successful in 4m32s
/ maubot-plugin-spaceapi (push) Successful in 2m6s
/ maubot-plugin-ultimaker (push) Successful in 2m7s
/ mautrix-signal (push) Successful in 1m6s
/ mautrix-telegram (push) Successful in 1m6s
/ mediawiki-extension-auth-remoteuser (push) Successful in 1m5s
/ mediawiki-extension-nativesvghandler (push) Successful in 1m3s
/ mediawiki-extension-openidconnect (push) Successful in 1m13s
/ mediawiki-extension-pluggableauth (push) Successful in 1m5s
/ mqtt2prometheus (push) Successful in 4m15s
/ mumble-web (push) Successful in 58s
/ mumble-web-data (push) Failing after 5m56s
/ mumble-web-proxy (push) Failing after 55s
/ prometheus-ipmi-exporter (push) Successful in 1m49s
/ prometheus-dnsbl-exporter (push) Successful in 1m32s
/ prometheus2influxdb (push) Successful in 34s
/ python3-mautrix (push) Successful in 1m15s
/ python3-telethon (push) Successful in 1m18s
/ repo.s3lph.me-apt-source (push) Successful in 33s
/ republik-feeder (push) Successful in 47s
/ woodpecker-agent (push) Successful in 2m16s
/ woodpecker-cli (push) Successful in 2m15s
feat(apt-source): run apt-update after installation
2023-12-18 19:44:51 +01:00

26 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
PKGNAME="repo.s3lph.me-apt-source"
mkdir -p build/pkgdir/DEBIAN
mkdir -p build/pkgdir/etc/apt/sources.list.d
mkdir -p build/pkgdir/usr/share/keyrings
mkdir -p "build/pkgdir/usr/share/doc/${PKGNAME}"
cp gitkabelsalatch-s3lph.sources build/pkgdir/etc/apt/sources.list.d/gitkabelsalatch-s3lph.sources
cp gitkabelsalatch-s3lph.asc build/pkgdir/usr/share/keyrings/gitkabelsalatch-s3lph.asc
cp debian.control build/pkgdir/DEBIAN/control
cp debian.conffiles build/pkgdir/DEBIAN/conffiles
cp debian.postinst build/pkgdir/DEBIAN/postinst
cp debian.changelog "build/pkgdir/usr/share/doc/${PKGNAME}/changelog"
cp debian.copyright "build/pkgdir/usr/share/doc/${PKGNAME}/copyright"
sed -re "s/__PKGNAME__/${PKGNAME}/g" -i build/pkgdir/DEBIAN/control
sed -re "s/__MAINTAINER__/${MAINTAINER}/g" -i build/pkgdir/DEBIAN/control
sed -re "s/__PKGNAME__/${PKGNAME}/g" -i "build/pkgdir/usr/share/doc/${PKGNAME}/copyright"
sed -re "s/__MAINTAINER__/${MAINTAINER}/g" -i "build/pkgdir/usr/share/doc/${PKGNAME}/copyright"
sed -re "s/__PKGNAME__/${PKGNAME}/g" -i "build/pkgdir/usr/share/doc/${PKGNAME}/changelog"
sed -re "s/__MAINTAINER__/${MAINTAINER}/g" -i "build/pkgdir/usr/share/doc/${PKGNAME}/changelog"
gzip -9n "build/pkgdir/usr/share/doc/${PKGNAME}/changelog"
dpkg-deb --build build/pkgdir build