summaryrefslogtreecommitdiff
path: root/core/rfkill/PKGBUILD
blob: 3ac08c05dcea86c3701b3b3403e2aa562324e7c6 (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
42
# $Id: PKGBUILD 175740 2013-01-21 04:49:48Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=rfkill
pkgver=0.4
pkgrel=7
pkgdesc='Tool for enabling and disabling wireless devices'
url='http://linuxwireless.org/en/users/Documentation/rfkill'
license=('custom')
arch=('i686' 'x86_64')
source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
        'service.unblock'
        'service.block'
        'rules.d'
        'conf.d'
        'rc.d')
sha1sums=('fccabf5a272ac2891f24dc35449dc6f4c45ff44b'
          '4d0ef151891c32c882dcec8b03ab7204f015d0d1'
          'c44581c4cc19509f53afd0abea1341cc30751fe2'
          '6390eaa793b473098aaa11b13c5254d611a4c13a'
          'd969fe927a9fb2926af43a311a7c1fa126fe59a9'
          '380af0b002f51543557306ed68a27f0059fd5a6f')

backup=('etc/conf.d/rfkill')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 ../rules.d "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules"
	install -Dm644 ../service.block "${pkgdir}/usr/lib/systemd/system/rfkill-block@.service"
	install -Dm644 ../service.unblock "${pkgdir}/usr/lib/systemd/system/rfkill-unblock@.service"
	install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/rfkill"
	install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/rfkill"
}