summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 740bad391d80c8e13b5a134df2ee1a1702a273ff (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
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='bashmount'
pkgname="${_pkgname}-git"
pkgver=4.3.2.r0.g9a15ab7
pkgrel=1
pkgdesc='Tool to mount and unmount removable media from the command-line'
arch=('any')
url='https://github.com/jamielinux/bashmount'
license=('GPL2')
depends=('cryptsetup')
makedepends=('git')
optdepends=('udisks2: manage removable media without sudo')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
backup=("etc/${_pkgname}.conf")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd "${_pkgname}"
  install -Dm755 -t "${pkgdir}/usr/bin" "${_pkgname}"
  install -Dm755 -t "${pkgdir}/etc" "${_pkgname}.conf"
  install -Dm644 -t "${pkgdir}/usr/share/man/man1" "${_pkgname}.1"
  install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md'
}

# vim: ts=2 sw=2 et: