|
|
@ -1,8 +1,7 @@
|
|
|
|
# Maintainer : Cole Deck <cole at deck dot sh>
|
|
|
|
# Maintainer : Cole Deck <cole at deck dot sh>
|
|
|
|
|
|
|
|
|
|
|
|
pkgname=asus-nb-ctrl-git
|
|
|
|
pkgname=asus-nb-ctrl
|
|
|
|
_pkgname=asus-nb-ctrl
|
|
|
|
pkgver=1.0.2
|
|
|
|
pkgver=1.0.2.r6.gb8c83a1
|
|
|
|
|
|
|
|
pkgrel=1
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Userspace application to control features of ROG laptops"
|
|
|
|
pkgdesc="Userspace application to control features of ROG laptops"
|
|
|
|
arch=('x86_64')
|
|
|
|
arch=('x86_64')
|
|
|
@ -12,27 +11,29 @@ provides=()
|
|
|
|
conflicts=()
|
|
|
|
conflicts=()
|
|
|
|
depends=('libusb' 'dbus')
|
|
|
|
depends=('libusb' 'dbus')
|
|
|
|
makedepends=('rust' 'libusb' 'dbus' 'llvm' 'clang' 'systemd')
|
|
|
|
makedepends=('rust' 'libusb' 'dbus' 'llvm' 'clang' 'systemd')
|
|
|
|
source=("git+https://gitlab.com/asus-linux/asus-nb-ctrl.git")
|
|
|
|
source=("${pkgname}-${pkgver}.tar.gz"
|
|
|
|
sha256sums=("SKIP")
|
|
|
|
"vendor.tar.xz"
|
|
|
|
|
|
|
|
"cargo-config")
|
|
|
|
|
|
|
|
sha256sums=("SKIP"
|
|
|
|
|
|
|
|
"SKIP"
|
|
|
|
|
|
|
|
"SKIP")
|
|
|
|
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
mv "${srcdir}/vendor" "${srcdir}/${pkgname}-${pkgver}/"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
mkdir "${srcdir}/${pkgname}-${pkgver}/.cargo"
|
|
|
|
|
|
|
|
mv "${srcdir}/cargo-config" "${srcdir}/${pkgname}-${pkgver}/.cargo/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
cargo build --release --locked --all-features --target-dir=target
|
|
|
|
cargo build --release --locked --all-features --target-dir=target
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
install -D -m 0755 target/release/asusd ${pkgdir}/usr/bin/asusd
|
|
|
|
install -D -m 0755 target/release/asusd ${pkgdir}/usr/bin/asusd
|
|
|
|
install -D -m 0755 target/release/asusctl ${pkgdir}/usr/bin/asusctl
|
|
|
|
install -D -m 0755 target/release/asusctl ${pkgdir}/usr/bin/asusctl
|
|
|
|
install -D -m 0644 data/asusd.rules ${pkgdir}/etc/udev/rules.d/90-asusd.rules
|
|
|
|
install -D -m 0644 data/asusd.rules ${pkgdir}/etc/udev/rules.d/90-asusd.rules
|
|
|
|
install -D -m 0644 data/asusd.conf ${pkgdir}/etc/dbus-1/system.d/asusd.conf
|
|
|
|
install -D -m 0644 data/asusd.conf ${pkgdir}/etc/dbus-1/system.d/asusd.conf
|
|
|
|
install -D -m 0644 data/asusd.service ${pkgdir}/usr/lib/systemd/system/asusd.service
|
|
|
|
install -D -m 0644 data/asusd.service ${pkgdir}/usr/lib/systemd/system/asusd.service
|
|
|
|
install -D -m 0644 data/asusd-ledmodes.toml ${pkgdir}/etc/asusd/asusd-ledmodes.toml
|
|
|
|
install -D -m 0644 data/asusd-ledmodes.toml ${pkgdir}/etc/asusd/asusd-ledmodes.toml
|
|
|
|
|
|
|
|
}
|
|
|
|
#make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
}
|
|
|
|
|