summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcc9f5f60224b52059a43b86603593016c34b1db (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
# Maintainer: longranger <longranger dot 406 at gmail dot com>
pkgname="noauto_mounter"
pkgver=0.5.r3.g05f3ce2
pkgrel=1
pkgdesc="auto mount local and nfs noauto fstab mounts"
arch=('x86_64')
url="https://github.com/longranger/noauto_mounter"
license=('GPL')
depends=()
makedepends=('git')
source=("${pkgname}-${pkgver}"::'git://github.com/longranger/noauto_mounter.git')
md5sums=('SKIP')
install='noauto_mounter.install'

pkgver() {
	cd "${pkgname}-${pkgver}"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	install -Dm755 noauto_mounter "${pkgdir}"/usr/bin/noauto_mounter
	install -Dm755 noauto_mounter.timer "${pkgdir}"/usr/lib/systemd/system/noauto_mounter.timer
	install -Dm755 noauto_mounter.service "${pkgdir}"/usr/lib/systemd/system/noauto_mounter.service
}