aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: ff3b102b5e02b42e30e3feea4d82dae6e48ef2f4 (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
# Maintainer: Robert Alessi <alessi@robertalessi.net>

pkgname=x200-my
pkgver=0.3
pkgrel=1
pkgdesc="Service to remove whining noise from Thinkpads X200, power off the wifi on shutdown and optionally backup directories."
arch=(any)
license=(GPL2)
url="http://git.robertalessi.net/x200-my"
depends=('sysvinit' 'networkmanager' 'acpid' 'intel-gpu-tools')
install=x200-my.install
source=('x200-my.initd'
        'x200-my.confd'
	'x200-my-lid.sh'
	'x200-my-sleep.sh'
	'x200-my.sh')
sha512sums=('96579d18e8639da441b2f0104e453f2ffd34a1c14c77ad08709fc090b168d0030f5074d8c54f116739a4f421286c5d2b64181c66fabd2eee91c371d8aa856395'
            '9129a88db1c0a8385a053060ae3f737e75be1c50d7ae17a8804121ae20365b9938ed47c06b55250e72df2c20036c5043e70c84fb63e57d4548afb20ee9b29c94'
            '0dc141f1a26f2cd570d49a05bcc9496ba4c49fde39afad46f5a0783e83c07ec810ca81454a28c3241bcffc62ac31274e2a8d726bbd3c1e91d8cf5315b783c3f8'
            '610564aa853c5dbc4e370ec2a4d3b5590e53ed235a1960927c0986a31f6c77d135086b1f5752b56fd511ea4a0294082fc7e98ee2fa7b69b37776a59f45c2ec34'
            'cb765075f02b5cd16bcfc31571cf7c31ddcd74ff3aa832df1acd96bd8feb62855c0cf90c31c3e0028180765a51eafc5c74fb1f0406dd9172bdc0f5ec02b39f8c')

package() {
  install -Dm755 x200-my.initd "$pkgdir"/etc/init.d/x200-my
  sed -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
      -i $pkgdir/etc/init.d/x200-my
  install -Dm644 "x200-my.confd" "$pkgdir/etc/conf.d/x200-my"
  install -Dm644 "x200-my-lid.sh" "$pkgdir/etc/acpi/events/x200-my-lid"
  install -Dm644 "x200-my-sleep.sh" "$pkgdir/etc/acpi/events/x200-my-sleep"
  install -Dm755 "x200-my.sh" "$pkgdir/etc/acpi/x200-my.sh"
}