From 2cc8a97489efa9654b9e794717a19bb1674913a0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 15 Oct 2022 15:42:27 +0300 Subject: ldm: Adopted --- ldm/.SRCINFO | 22 ++++++++++++++++++++++ ldm/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ ldm/ldm.install | 11 +++++++++++ 3 files changed, 68 insertions(+) create mode 100644 ldm/.SRCINFO create mode 100644 ldm/PKGBUILD create mode 100644 ldm/ldm.install (limited to 'ldm') diff --git a/ldm/.SRCINFO b/ldm/.SRCINFO new file mode 100644 index 0000000..fc32224 --- /dev/null +++ b/ldm/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Sun Feb 21 14:00:59 UTC 2016 +pkgbase = ldm + pkgdesc = A lightweight device mounter + pkgver = 0.7 + pkgrel = 2 + url = https://github.com/LemonBoy/ldm + install = ldm.install + arch = i686 + arch = x86_64 + arch = armv7h + license = MIT + depends = udev + depends = util-linux + depends = glib2 + provides = ldm + conflicts = ldm-git + source = ldm-0.7.tar.gz::http://github.com/lemonboy/ldm/archive/v0.7.tar.gz + sha256sums = fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb + +pkgname = ldm + diff --git a/ldm/PKGBUILD b/ldm/PKGBUILD new file mode 100644 index 0000000..c493f01 --- /dev/null +++ b/ldm/PKGBUILD @@ -0,0 +1,35 @@ +## ldm PKGBUILD +# Maintainer: The Lemon Man + +pkgname=ldm +pkgver=0.7 +pkgrel=2 +pkgdesc="A lightweight device mounter" +arch=('i686' 'x86_64' 'armv7h') +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') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" +} + +build() { + export PATH=$PATH:/usr/bin/core_perl + cd "$srcdir/$pkgname-$pkgver" + make +} + +package() { + export PATH=$PATH:/usr/bin/core_perl + cd "$srcdir/$pkgname-$pkgver" + 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 0000000..d59f404 --- /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=' + 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 +} -- cgit v1.2.3-70-g09d2