summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f548cd198d7e1b3279786cb80f0a295020d8760a (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
# Maintainer: robertfoster
# Contributor: marlock

pkgname=android-udev-git
pkgver=20240221.r0.g32c0d75
pkgrel=1
pkgdesc='Udev rules to connect Android devices to your linux box'
arch=('any')
url="https://github.com/M0Rf30/android-udev-rules"
license=('GPL3')
source=("${pkgname%-git}::git+https://github.com/M0Rf30/android-udev-rules.git")
depends=('libmtp' 'systemd')
makedepends=('git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")

package() {
  cd "${pkgname%-git}"

  install -Dm 644 51-android.rules \
    "${pkgdir}"/usr/lib/udev/rules.d/51-android.rules
  install -Dm 644 android-udev.conf \
    "${pkgdir}"/usr/lib/sysusers.d/android-udev.conf
}

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

sha256sums=('SKIP')