summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bcd12fb9761eed194bd7d49c4d925110edb1534 (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
35
36
37
38
# Maintainer: robertfoster
# Contributor: marlock

pkgname=android-udev-git
pkgver=20200613.r0.ge5bc06e
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=('android-udev::git+https://github.com/M0Rf30/android-udev-rules.git')
depends=('systemd' 'libmtp')
makedepends=('git')
conflicts=('android-udev')
provides=('android-udev')
install='android-udev.install'

package() {
  cd android-udev
  # Creating system folders
  mkdir -p $pkgdir/usr/lib/udev/rules.d/
  mkdir -p $pkgdir/usr/lib/sysusers.d
  mkdir -p $pkgdir/usr/share/android/

  # Installing rules and confs
  cp 51-android.rules $pkgdir/usr/lib/udev/rules.d/51-android.rules
  cp android-udev.conf $pkgdir/usr/lib/sysusers.d

  # Setting permissions
  chmod a+r $pkgdir/usr/lib/udev/rules.d/51-android.rules
}

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

md5sums=('SKIP')