summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStorm Dragon2018-09-03 13:41:49 -0400
committerStorm Dragon2018-09-03 13:41:49 -0400
commit22d2921dda71dde75327693f47b762b90fa777f8 (patch)
tree29f41fc61ed2226ccb621d86f381e4e6b470b33e
downloadaur-22d2921dda71dde75327693f47b762b90fa777f8.tar.gz
Initial commit.
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f65930e266a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Mon Sep 3 17:40:58 UTC 2018
+pkgbase = automount-usb-git
+ pkgdesc = Automount USB drives with systemd
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/six-k/automount-usb
+ arch = any
+ license = unlicense
+ makedepends = git
+ depends = bash
+ provides = automount-usb
+ conflicts = automount-usb
+ source = git+https://github.com/six-k/automount-usb.git
+ md5sums = SKIP
+
+pkgname = automount-usb-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cf96c086ac6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
+_pkgname=automount-usb
+pkgname=automount-usb-git
+pkgver=1
+pkgrel=1
+pkgdesc="Automount USB drives with systemd"
+arch=('any')
+url="https://github.com/six-k/automount-usb"
+license=('unlicense')
+depends=('bash')
+makedepends=('git')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("git+${url}.git")
+md5sums=("SKIP")
+
+pkgver()
+{
+ cd "$_pkgname"
+ git shortlog | head -n 1 | tr -Cd "[:digit:]"
+}
+
+package()
+ {
+ cd "$_pkgname"
+ install -d "$pkgdir/usr/local/bin"
+ install -d "$pkgdir/etc/systemd/system"
+ install -d "$pkgdir/etc/udev/rules.d"
+ install -m755 "usb-mount.sh" "$pkgdir/usr/local/bin"
+ install -m644 "usb-mount@.service" "$pkgdir//etc/systemd/system/"
+ install -m644 "99-local.rules.usb-mount" "$pkgdir/etc/udev/rules.d/99-local.rules"
+ }
+
+# vim:set ts=2 sw=2 et: