summaryrefslogtreecommitdiff
path: root/core/rfkill/PKGBUILD
blob: 32e24b430c7e64165f140082519d7ac80a9bfb3a (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
# $Id: PKGBUILD 186265 2013-05-23 06:41:04Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=rfkill
pkgver=0.5
pkgrel=1
pkgdesc='Tool for enabling and disabling wireless devices'
url='http://wireless.kernel.org/en/users/Documentation/rfkill'
license=('custom')
arch=('i686' 'x86_64' 'mips64el')
source=("https://www.kernel.org/pub/software/network/${pkgname}/${pkgname}-${pkgver}.tar.xz"
        'service.unblock'
        'service.block'
        'rules.d')
sha1sums=('03025d4ae285c40d5c19ec99ef7b317afda9d900'
          '5f4a04a434df2ca28ca6687326c67c1f125aa3d4'
          '6cc294af37232469cd5ba63455b571fe258e1cc6'
          '6390eaa793b473098aaa11b13c5254d611a4c13a')

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

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make SBINDIR=/usr/bin 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"
}