aboutsummaryrefslogtreecommitdiffstats
path: root/community/android-udev-rules/APKBUILD
blob: b64b7605d4a69f46efea364b9bd802a61dea0b4f (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
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=android-udev-rules
pkgver=20230614
pkgrel=0
pkgdesc="Android udev rules list"
url="https://github.com/M0Rf30/android-udev-rules"
arch="noarch"
license="GPL-3.0-only"
depends="udev"
install="$pkgname.pre-install"
source="https://github.com/M0Rf30/android-udev-rules/archive/$pkgver/android-udev-rules-$pkgver.tar.gz"
options="!check" # no testsuite provided

prepare() {
	default_prepare

	# use plugdev as the group permitted to use adb devices
	sed -i 's/adbusers/plugdev/' 51-android.rules
}

package() {
	install -Dm644 51-android.rules -t "$pkgdir"/usr/lib/udev/rules.d/
}

sha512sums="
983282a6adcbc200e548985d403a317e0cca48282ec17cf8496f7009df9a75e4c6a16a2ec0a65214a019acfdf550fb6450ef1dfe4021d8e9449988427f9c25c2  android-udev-rules-20230614.tar.gz
"