[arch-commits] Commit in android-udev/repos (3 files)

Anatol Pomozov anatolik at archlinux.org
Thu Dec 4 16:39:18 UTC 2014


    Date: Thursday, December 4, 2014 @ 17:39:17
  Author: anatolik
Revision: 123449

archrelease: copy trunk to community-testing-any

Added:
  android-udev/repos/community-testing-any/
  android-udev/repos/community-testing-any/PKGBUILD
    (from rev 123448, android-udev/trunk/PKGBUILD)
  android-udev/repos/community-testing-any/android-udev.install
    (from rev 123448, android-udev/trunk/android-udev.install)

----------------------+
 PKGBUILD             |   28 ++++++++++++++++++++++++++++
 android-udev.install |   12 ++++++++++++
 2 files changed, 40 insertions(+)

Copied: android-udev/repos/community-testing-any/PKGBUILD (from rev 123448, android-udev/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2014-12-04 16:39:17 UTC (rev 123449)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: M0Rf30
+# Contributor: marlock
+
+pkgname=android-udev
+pkgver=r124
+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)
+depends=(udev libmtp)
+makedepends=(git)
+install='android-udev.install'
+
+# instead of using HEAD version let's depend on some known revision
+_git_revision=a08c3cd6ae83537dcc398925db52349fe7f5c7f5
+source=(git+https://github.com/M0Rf30/android-udev-rules.git#commit=$_git_revision)
+md5sums=('SKIP')
+
+pkgver() {
+  cd android-udev-rules
+  printf "r%s" "$(git rev-list --count HEAD)"
+}
+
+package() {
+  install -Dm 644 android-udev-rules/51-android.rules "$pkgdir"/usr/lib/udev/rules.d/51-android.rules
+}

Copied: android-udev/repos/community-testing-any/android-udev.install (from rev 123448, android-udev/trunk/android-udev.install)
===================================================================
--- community-testing-any/android-udev.install	                        (rev 0)
+++ community-testing-any/android-udev.install	2014-12-04 16:39:17 UTC (rev 123449)
@@ -0,0 +1,12 @@
+post_install() {
+  getent group adbusers >/dev/null && groupdel adbusers
+  groupadd -r adbusers
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  getent group adbusers &>/dev/null && groupdel adbusers
+}



More information about the arch-commits mailing list