blob: 962378319385c799f753e4369ee023579c542b12 (
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
|
# Maintainer: teackot <teackot at gmail dot com>
_prjname=MControlCenter
pkgname=mcontrolcenter-bin
pkgver=0.4.1
pkgrel=1
pkgdesc='An application that allows you to change the settings of MSI laptops'
arch=('x86_64')
url='https://github.com/dmitry-s93/MControlCenter'
license=('GPL3')
depends=('qt5-base' 'hicolor-icon-theme')
source=(https://github.com/dmitry-s93/$_prjname/releases/download/${pkgver}/${_prjname}-${pkgver}-bin.tar.gz)
b2sums=('9a71b266fe42f65361a5b290cfbd0dc0246d166cf6760f613c2f0086eb62418f7d9a6be533aba3c0626c541af4f63174ba8920f83adf289a8e82a05c34e9ccfc')
prepare() {
echo "ec_sys" > $pkgname-kmod.conf
echo "options ec_sys write_support=1" > $pkgname-opts.conf
}
package() {
_binname=mcontrolcenter
# load ec_sys on boot
install -Dm644 $pkgname-kmod.conf $pkgdir/etc/modules-load.d/$_binname.conf
# set ec_sys options
install -Dm644 $pkgname-opts.conf $pkgdir/etc/modprobe.d/$_binname.conf
cd "$_prjname-$pkgver-bin/app/"
install -Dm755 $_binname $pkgdir/usr/bin/$_binname
install -Dm644 $_binname.desktop $pkgdir/usr/share/applications/$_binname.desktop
install -Dm644 $_binname.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/$_binname.svg
install -Dm755 $_binname-helper $pkgdir/usr/libexec/$_binname-helper
install -Dm644 $_binname-helper.conf $pkgdir/usr/share/dbus-1/system.d/$_binname-helper.conf
install -Dm644 $_binname.helper.service $pkgdir/usr/share/dbus-1/system-services/$_binname.helper.service
}
|