File: entrypoint.sh

package info (click to toggle)
audacity 3.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 106,704 kB
  • sloc: cpp: 277,038; ansic: 73,623; lisp: 7,761; python: 3,305; sh: 2,715; perl: 821; xml: 275; makefile: 119
file content (37 lines) | stat: -rw-r--r-- 716 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash

set -euo pipefail

cp -v /work_dir/*.tar.gz ./

ls -la .

sources=$(ls audacity-sources-*)
version=$(echo ${sources} | sed -e 's/audacity-sources-//g' -e 's/.tar.gz//g' -e 's/-/./g' -e 's/\.[0-9]\++/.r/g')

echo "Audacity version: ${version}"

buildLevel=2

if [[ "${sources}" == *alpha* ]]; then
    buildLevel=0
elif [[ "${sources}" == *beta* ]]; then
    buildLevel=1
fi

echo "Audacity build level: ${buildLevel}"

deps=$(ls audacity-dependencies-*)

sed -i -e "s|TMPL_AUDACITY_VERSION|${version}|g" PKGBUILD
sed -i -e "s|TMPL_AUDACITY_SOURCES|${sources}|g" PKGBUILD
sed -i -e "s|TMPL_AUDACITY_DEPENDENCIES|${deps}|g" PKGBUILD

cat PKGBUILD

makepkg

ls -la /work_dir
id

cp *.zst /work_dir