summaryrefslogtreecommitdiff
path: root/ldm/PKGBUILD
blob: ec79b8566f240cbe1e930ab84e04f73cf416831c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## ldm PKGBUILD
# Contributor: The Lemon Man
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname=ldm
pkgver=0.8
pkgrel=1
pkgdesc="A lightweight device mounter"
arch=('i686' 'pentium4' 'x86_64')
url="https://github.com/LemonBoy/ldm"
license=('MIT')
_pinned_dependencies=(
  'glibc>=2.31'
  'libglib-2.0.so=0'
  'libmount.so=1'
  'libudev.so=1'
)
depends=('udev' "${_pinned_dependencies[@]}")
provides=('ldm')
conflicts=('ldm-git')
install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz"::"http://github.com/lemonboy/$pkgname/archive/v$pkgver.tar.gz")
sha512sums=('27f74d1cfe3292a5a0393c2db0f113d02870e6623b8db3f4bd0d6003d2bea4fc8977c910e7eef465022e5fca8986b66d6975ff63683744105e4561830d1708bc')

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"
}