Skip to content

Commit a521f5a

Browse files
committed
Merge branch 'patch-arch-build' into fix-focus-2
2 parents 35bd333 + e379913 commit a521f5a

File tree

2 files changed

+31
-12
lines changed

2 files changed

+31
-12
lines changed

archlinux/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pkg/
2+
src/
3+
*.tar.zst

archlinux/PKGBUILD

+28-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pkgname=(qubes-vm-gui qubes-vm-pulseaudio)
2-
pkgver=$(cat version)
32
pkgrel=10
43
epoch=
54
pkgdesc="The Qubes GUI Agent for AppVMs"
@@ -8,8 +7,8 @@ url="http://qubes-os.org/"
87
license=('GPL')
98
groups=()
109
makedepends=(pkg-config make gcc patch git automake autoconf libtool
11-
'pulseaudio<=16.1'
12-
xorg-server-devel xorg-util-macros libxcomposite libxt pixman lsb-release
10+
'pulseaudio'
11+
xorg-server-devel xorg-util-macros libxcomposite libxt pixman
1312
qubes-vm-gui-common qubes-libvchan qubes-db-vm
1413
)
1514
checkdepends=()
@@ -21,21 +20,39 @@ backup=()
2120
options=()
2221
changelog=
2322

24-
source=(PKGBUILD-z-qubes-session.sh)
23+
source=()
24+
md5sums=()
2525

2626
noextract=()
27-
md5sums=() #generate with 'makepkg -g'
28-
pa_ver=$((pkg-config --modversion libpulse 2>/dev/null || echo 0.0) | cut -f 1 -d "-")
27+
pa_ver=16.1 #specify this manually please
28+
# If using pkg-config, you must update libpulse first.
29+
#pa_ver=$((pkg-config --modversion libpulse 2>/dev/null || echo 0.0) | cut -f 1 -d "-")
30+
31+
export PA_VER_FULL=$pa_ver
32+
33+
if [ -e archlinux ] # on no, at repo root
34+
then
35+
echo Do not run 'makepkg' at repo root! >&2
36+
cd archlinux
37+
fi
38+
39+
pkgver=$(cat $startdir/../version)
40+
41+
clean() {
42+
rm $srcdir/* -r || true
43+
}
2944

3045
build() {
3146

32-
for source in Makefile appvm-scripts gui-common include pulse gui-agent common xf86-input-mfndev xf86-video-dummy xf86-qubes-common window-icon-updater version; do
33-
(ln -s $srcdir/../$source $srcdir/$source)
47+
rm $srcdir/PKGBUILD-z-qubes-session.sh || true
48+
cp $startdir/PKGBUILD-z-qubes-session.sh $srcdir/
49+
for source in Makefile appvm-scripts gui-common include pulse gui-agent common xf86-input-mfndev xf86-video-dummy xf86-qubes-common window-icon-updater version; do
50+
rm $source -r || true
51+
cp -r $startdir/../$source $source
3452
done
3553

36-
pa_ver=$((pkg-config --modversion libpulse 2>/dev/null || echo 0.0) | cut -f 1 -d "-")
3754

38-
rm -f pulse/pulsecore
55+
rm -rf pulse/pulsecore
3956
ln -s pulsecore-$pa_ver pulse/pulsecore
4057

4158
# Bug fixes : /var/run/console depends on pam_console, which is fedora specific
@@ -71,9 +88,8 @@ install -D $srcdir/PKGBUILD-z-qubes-session.sh $pkgdir/etc/X11/xinit/xinitrc.d/z
7188
package_qubes-vm-pulseaudio() {
7289

7390
pkgdesc="Pulseaudio support for Qubes VM"
74-
depends=('alsa-lib' 'alsa-utils' 'pulseaudio-alsa' 'pulseaudio<=16.1')
91+
depends=('alsa-lib' 'alsa-utils' 'pulseaudio-alsa' 'pulseaudio')
7592
install=PKGBUILD-pulseaudio.install
76-
pa_ver=$((pkg-config --modversion libpulse 2>/dev/null || echo 0.0) | cut -f 1 -d "-")
7793

7894
make install-pulseaudio DESTDIR=$pkgdir PA_VER=$pa_ver LIBDIR=/usr/lib USRLIBDIR=/usr/lib SYSLIBDIR=/usr/lib
7995

0 commit comments

Comments
 (0)