-
Notifications
You must be signed in to change notification settings - Fork 31
/
install-repo.bash
executable file
·32 lines (24 loc) · 1023 Bytes
/
install-repo.bash
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
#!/bin/bash
set -o pipefail # trace ERR through pipes
set -o errtrace # trace ERR through 'time command' and other functions
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
set -o xtrace # print commands as they are executed
ARCH=amd64
case "$1" in
allegro | *32 ) ARCH=i386 ;;
esac
KEYFILE=/etc/apt/keyrings/obs-sionescu.key
cat > /etc/apt/sources.list.d/libfixposix.list <<EOF
deb [signed-by=${KEYFILE}] http://download.opensuse.org/repositories/home:/sionescu/Ubuntu_Jammy/ ./
EOF
cat > /etc/apt/preferences.d/libfixposix <<EOF
Package: libfixposix*
Pin: origin download.opensuse.org
Pin-Priority: 1001
EOF
mkdir -vp /etc/apt/keyrings/
curl https://download.opensuse.org/repositories/home:/sionescu/Ubuntu_Jammy/Release.key | sudo tee "${KEYFILE}"
apt-get update -qq
apt-get -y install libfixposix4:${ARCH} libfixposix-dev:${ARCH}
dpkg -L libfixposix4 libfixposix-dev