summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 212bcde4d3b225b454f23572a96b134bdf6fb614 (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
36
# Maintainer: James R. <justsomejames@gmail.com>
pkgname=amount
pkgver=1.3.1
pkgrel=1
pkgdesc="Filesystem mounting utility for ordinary users."
license=('custom')
arch=('any')
depends=('bash' 'coreutils' 'util-linux' 'procps-ng' 'shadow')
optdepends=('systemd: systemd service support')
provides=('amount')
url="https://www.jameds.org/amount/"
source=("https://www.jameds.org/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('08fb78d224c5d75eeec3ce902c98e625')
install="$pkgname.install"

build()
{
	cd "$pkgname-$pkgver"

	sed 's-\$prefix-\$pkgdir/&-g' < install.sh > install.sh.new
	sed 's-\(eprefix=.*\)\$pkgdir/-\1-' < install.sh.new > install.sh
	rm install.sh.new
}

package()
{
	cd "$pkgname-$pkgver"

	export pkgdir ; install -d -m 755 "$pkgdir/usr/bin"
	./install.sh /usr

	install -d -m 644 "$pkgdir/usr/share/licenses/$pkgname"
	./amountd -l > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	chmod 644 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('08fb78d224c5d75eeec3ce902c98e625')