edit arch packaging files
This commit is contained in:
parent
331dc65955
commit
440ef15fcb
2 changed files with 23 additions and 15 deletions
32
PKGBUILD
32
PKGBUILD
|
@ -1,19 +1,27 @@
|
||||||
|
# Maintainer: Dymstro <ricardo at dymstro dot nl>
|
||||||
|
|
||||||
pkgname=nova-chatmix
|
pkgname=nova-chatmix
|
||||||
pkgver=0.0.1
|
pkgver=0.1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('any')
|
||||||
depends=('python' 'python-hid' 'pipewire')
|
url='https://git.dymstro.nl/Dymstro/nova-chatmix-linux'
|
||||||
|
license=('0BSD')
|
||||||
|
depends=('python' 'python-hidapi' 'pipewire' 'libpulse')
|
||||||
makedepends=('git')
|
makedepends=('git')
|
||||||
source=("$pkgname::git+https://github.com/Dymstro/nova-chatmix-linux.git")
|
source=("$pkgname::git+https://git.dymstro.nl/Dymstro/nova-chatmix-linux.git#tag=v${pkgver}")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
install=nova-chatmix.install
|
install=nova-chatmix.install
|
||||||
|
|
||||||
package() {
|
prepare() {
|
||||||
cd "$pkgname"
|
# Change service to point to system bin directory
|
||||||
install -Dm755 nova.py "$pkgdir/usr/bin/nova-chatmix"
|
sed -i 's#%h/\.local/bin#/usr/bin#g' ${pkgname}/nova-chatmix.service
|
||||||
install -Dm644 50-nova-pro-wireless.rules \
|
}
|
||||||
"$pkgdir/usr/lib/udev/rules.d/50-nova-pro-wireless.rules"
|
|
||||||
install -Dm644 nova-chatmix.service \
|
package() {
|
||||||
"$pkgdir/usr/lib/systemd/user/nova-chatmix.service"
|
cd "${pkgname}"
|
||||||
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
install -Dm755 nova-chatmix.py "${pkgdir}/usr/bin/nova-chatmix/nova-chatmix"
|
||||||
|
install -Dm644 50-nova-pro-wireless.rules "${pkgdir}/usr/lib/udev/rules.d/50-nova-pro-wireless.rules"
|
||||||
|
install -Dm644 nova-chatmix.service "${pkgdir}/usr/lib/systemd/user/nova-chatmix.service"
|
||||||
|
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||||
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
post_install() {
|
post_install() {
|
||||||
|
udevadm control --reload-rules
|
||||||
|
udevadm trigger
|
||||||
echo "==> To enable nova-chatmix for your user, run:"
|
echo "==> To enable nova-chatmix for your user, run:"
|
||||||
echo " systemctl --user enable --now nova-chatmix"
|
echo " systemctl --user enable --now nova-chatmix"
|
||||||
echo "==> If your headset is not detected after install, run:"
|
}
|
||||||
echo " sudo udevadm control --reload-rules"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue