diff options
author | Storm Dragon | 2018-09-03 13:41:49 -0400 |
---|---|---|
committer | Storm Dragon | 2018-09-03 13:41:49 -0400 |
commit | 22d2921dda71dde75327693f47b762b90fa777f8 (patch) | |
tree | 29f41fc61ed2226ccb621d86f381e4e6b470b33e | |
download | aur-automount-usb-git.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f65930e266ab --- /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 000000000000..cf96c086ac6a --- /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: |