diff options
Diffstat (limited to 'ldm')
-rw-r--r-- | ldm/.SRCINFO | 22 | ||||
-rw-r--r-- | ldm/PKGBUILD | 35 | ||||
-rw-r--r-- | ldm/ldm.install | 11 |
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 | ||
3 | pkgbase = 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 | |||
21 | pkgname = 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 | |||
4 | pkgname=ldm | ||
5 | pkgver=0.7 | ||
6 | pkgrel=2 | ||
7 | pkgdesc="A lightweight device mounter" | ||
8 | arch=('i686' 'x86_64' 'armv7h') | ||
9 | url="https://github.com/LemonBoy/ldm" | ||
10 | license=('MIT') | ||
11 | depends=('udev' 'util-linux' 'glib2') | ||
12 | provides=('ldm') | ||
13 | conflicts=('ldm-git') | ||
14 | install=$pkgname.install | ||
15 | source=("$pkgname-$pkgver.tar.gz"::"http://github.com/lemonboy/$pkgname/archive/v$pkgver.tar.gz") | ||
16 | sha256sums=('fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb') | ||
17 | |||
18 | prepare() { | ||
19 | cd "$srcdir/$pkgname-$pkgver" | ||
20 | } | ||
21 | |||
22 | build() { | ||
23 | export PATH=$PATH:/usr/bin/core_perl | ||
24 | cd "$srcdir/$pkgname-$pkgver" | ||
25 | make | ||
26 | } | ||
27 | |||
28 | package() { | ||
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 @@ | |||
1 | post_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 | } | ||
7 | post_upgrade() { | ||
8 | if [ ! -f /etc/ldm.conf ]; then | ||
9 | echo 'NOTE: The configuration file has been moved to /etc/ldm.conf' | ||
10 | fi | ||
11 | } | ||