summaryrefslogtreecommitdiff
path: root/ldm
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-03-12 11:03:13 +0100
committerErich Eckner <git@eckner.net>2017-03-12 15:35:43 +0100
commit636d7421773e3278479dfdc588fb3d241513b665 (patch)
tree163dccc2e0bb31dee021950b6393d83a4b006ffe /ldm
parent934158f7dd441ef4d9fde975ef6c0b3fac477009 (diff)
downloadarchlinuxewe-636d7421773e3278479dfdc588fb3d241513b665.tar.xz
ldm neu
Diffstat (limited to 'ldm')
-rw-r--r--ldm/PKGBUILD29
-rw-r--r--ldm/ldm.install11
2 files changed, 40 insertions, 0 deletions
diff --git a/ldm/PKGBUILD b/ldm/PKGBUILD
new file mode 100644
index 000000000..e2e0527cc
--- /dev/null
+++ b/ldm/PKGBUILD
@@ -0,0 +1,29 @@
+## ldm PKGBUILD
+# Contributor: The Lemon Man
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=ldm
+pkgver=0.7
+pkgrel=1
+pkgdesc="A lightweight device mounter"
+arch=('i686' 'x86_64')
+url="https://github.com/LemonBoy/ldm"
+license=('MIT')
+depends=('udev' 'util-linux' 'glib2')
+provides=('ldm')
+conflicts=('ldm-git')
+install=$pkgname.install
+source=("$pkgname-$pkgver.tar.gz"::"http://github.com/lemonboy/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ PATH=${PATH}:/usr/bin/core_perl make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ PATH=${PATH}:/usr/bin/core_perl make PREFIX=/usr DESTDIR="$pkgdir" install
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/ldm/ldm.install b/ldm/ldm.install
new file mode 100644
index 000000000..d59f404a6
--- /dev/null
+++ b/ldm/ldm.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo 'ldm expects a config file at /etc/ldm.conf containing your user name.'
+ echo 'Just add this line into it:'
+ echo 'MOUNT_OWNER=<your user name>'
+ echo 'BASE_MOUNTPOINT=/mnt/'
+}
+post_upgrade() {
+ if [ ! -f /etc/ldm.conf ]; then
+ echo 'NOTE: The configuration file has been moved to /etc/ldm.conf'
+ fi
+}