summaryrefslogtreecommitdiffstats
path: root/ldm
diff options
context:
space:
mode:
authorYigit Sever2022-10-15 15:42:27 +0300
committerYigit Sever2022-10-15 15:42:27 +0300
commit2cc8a97489efa9654b9e794717a19bb1674913a0 (patch)
tree905e979f814d17e7be383c03965fb106db9c519c /ldm
parentecfc19b6d40658f8674fe3eb80c9f2d28a277cdc (diff)
downloadpackages-2cc8a97489efa9654b9e794717a19bb1674913a0.tar.gz
packages-2cc8a97489efa9654b9e794717a19bb1674913a0.tar.bz2
packages-2cc8a97489efa9654b9e794717a19bb1674913a0.zip
ldm: Adopted
Diffstat (limited to 'ldm')
-rw-r--r--ldm/.SRCINFO22
-rw-r--r--ldm/PKGBUILD35
-rw-r--r--ldm/ldm.install11
3 files changed, 68 insertions, 0 deletions
diff --git a/ldm/.SRCINFO b/ldm/.SRCINFO
new file mode 100644
index 0000000..fc32224
--- /dev/null
+++ b/ldm/.SRCINFO
@@ -0,0 +1,22 @@
1# Generated by mksrcinfo v8
2# Sun Feb 21 14:00:59 UTC 2016
3pkgbase = ldm
4 pkgdesc = A lightweight device mounter
5 pkgver = 0.7
6 pkgrel = 2
7 url = https://github.com/LemonBoy/ldm
8 install = ldm.install
9 arch = i686
10 arch = x86_64
11 arch = armv7h
12 license = MIT
13 depends = udev
14 depends = util-linux
15 depends = glib2
16 provides = ldm
17 conflicts = ldm-git
18 source = ldm-0.7.tar.gz::http://github.com/lemonboy/ldm/archive/v0.7.tar.gz
19 sha256sums = fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb
20
21pkgname = ldm
22
diff --git a/ldm/PKGBUILD b/ldm/PKGBUILD
new file mode 100644
index 0000000..c493f01
--- /dev/null
+++ b/ldm/PKGBUILD
@@ -0,0 +1,35 @@
1## ldm PKGBUILD
2# Maintainer: The Lemon Man
3
4pkgname=ldm
5pkgver=0.7
6pkgrel=2
7pkgdesc="A lightweight device mounter"
8arch=('i686' 'x86_64' 'armv7h')
9url="https://github.com/LemonBoy/ldm"
10license=('MIT')
11depends=('udev' 'util-linux' 'glib2')
12provides=('ldm')
13conflicts=('ldm-git')
14install=$pkgname.install
15source=("$pkgname-$pkgver.tar.gz"::"http://github.com/lemonboy/$pkgname/archive/v$pkgver.tar.gz")
16sha256sums=('fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb')
17
18prepare() {
19 cd "$srcdir/$pkgname-$pkgver"
20}
21
22build() {
23 export PATH=$PATH:/usr/bin/core_perl
24 cd "$srcdir/$pkgname-$pkgver"
25 make
26}
27
28package() {
29 export PATH=$PATH:/usr/bin/core_perl
30 cd "$srcdir/$pkgname-$pkgver"
31 make PREFIX=/usr DESTDIR="$pkgdir" install
32
33 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
34}
35
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 @@
1post_install() {
2 echo 'ldm expects a config file at /etc/ldm.conf containing your user name.'
3 echo 'Just add this line into it:'
4 echo 'MOUNT_OWNER=<your user name>'
5 echo 'BASE_MOUNTPOINT=/mnt/'
6}
7post_upgrade() {
8 if [ ! -f /etc/ldm.conf ]; then
9 echo 'NOTE: The configuration file has been moved to /etc/ldm.conf'
10 fi
11}