core/rfkill/PKGBUILD

35 lines
1.2 KiB
Bash
Raw Normal View History

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