blob: 7c38c89286a97e8384619df52ddb25bbac545626 (
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
|
# Maintainer: Trix <admin@trix.is-a.dev>
# Contributor: GasparVardanyan <gaspar_pm@proton.me>
pkgname='awcc-git'
pkgrel=1
pkgver=r339.ed899a2
pkgdesc="An unofficial alternative to Alienware Command Centre of Windows for the Dell G series"
arch=('x86_64')
url="https://github.com/tr1xem/AWCC"
license=('GPL3')
depends=('acpi_call-dkms' 'libx11' 'systemd-libs' 'glibc' 'glu' 'libglvnd')
makedepends=('git' 'ninja' 'cmake' 'meson')
provides=("awcc")
conflicts=('awcc-bin')
# install='awcc.install'
source=('awcc::git+https://github.com/tr1xem/AWCC.git#branch=main')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build/
cmake .. -G Ninja
ninja
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm755 "./build/awcc" "$pkgdir/usr/bin/awcc"
install -Dm644 "./app/awccd.service" "$pkgdir/etc/systemd/system/awccd.service"
install -Dm644 "./app/70-awcc.rules" "$pkgdir/etc/udev/rules.d/70-awcc.rules"
install -Dm644 "./app/awcc.png" "$pkgdir/usr/share/icons/awcc.png"
install -Dm644 "./app/awcc.desktop" "$pkgdir/usr/share/applications/awcc.desktop"
install -Dm644 "./database.json" "$pkgdir/etc/awcc/database.json"
install -Dm644 "./LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|