blob: 952202c8eb94746856bcf33775b3d0c261cd0e34 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer:Magillos <kerown at gmail com>
pkgname=cable
pkgver=0.9.6
pkgrel=1
pkgdesc="A PyQt6 application to dynamically modify Pipewire and Wireplumber settings"
arch=('any')
url="https://github.com/magillos/Cable"
license=('GPL-3.0')
depends=('python' 'python-pyqt6' 'python-jack-client' 'jack_delay' 'python-requests')
makedepends=('python-setuptools')
if [ -n "${USE_LOCAL}" ]; then
source=("${USE_LOCAL_PATH:-./Cable-$pkgver.tar.gz}")
sha256sums=('SKIP')
else
source=("cable-$pkgver.tar.gz::https://github.com/magillos/Cable/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('85b2b887cb26300fd20ef9ebbf8285f660db1b9485d9ca38e25bbab51cf264b7')
fi
build() {
cd "$srcdir/Cable-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/Cable-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
# Install the icon
install -Dm644 "jack-plug.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/jack-plug.svg"
# Install the desktop entry
install -Dm644 "com.github.magillos.cable.desktop" "$pkgdir/usr/share/applications/com.github.magillos.cable.desktop"
# Create the /usr/share/cable directory if it doesn't exist
install -d "$pkgdir/usr/share/cable"
# Install connection-manager.py and Cable.py to /usr/share/cable
install -D "connection-manager.py" "$pkgdir/usr/share/cable/connection-manager.py"
install -D "Cable.py" "$pkgdir/usr/share/cable/Cable.py"
# Install the entire cables directory
cp -r cables "$pkgdir/usr/share/cable/"
cp -r cable_core "$pkgdir/usr/share/cable/"
# Ensure files have the correct permissions
find "$pkgdir/usr/share/cable" -type f -exec chmod 644 {} \;
find "$pkgdir/usr/share/cable" -type d -exec chmod 755 {} \;
}
|