core/rfkill/PKGBUILD
2014-08-26 23:17:48 +02:00

35 lines
1.2 KiB
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
pkgname=rfkill
pkgver=0.5
pkgrel=1
pkgdesc="Tool to query and set the rfkill state of wireless devices"
arch=('x86_64')
url="http://linuxwireless.org/en/users/Documentation/rfkill"
license=('custom')
depends=('glibc' 'filesystem>=2010.01')
source=("https://www.kernel.org/pub/software/network/${pkgname}/${pkgname}-${pkgver}.tar.xz"
60-rfkill.rules
service.unblock
service.block)
backup=(etc/conf.d/rfkill)
md5sums=('ce834c00c049cd86a04ab115c92ef548'
'63f9bf9264911242e430867a41e8918c'
'3a87d0d77656f005fbd9c3b003dadc90'
'a5835e0d5686ad1a12644edc3333d886')
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 ../60-rfkill.rules "${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"
}