summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a67be2ca5a95de0775b034860f81ed8649d1ab88 (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
# Maintainer: Mohamed Elsayed <mohamed@devlix.org>
pkgname=smbmnt
pkgver=r9.1f24685
pkgrel=6
pkgdesc="Mount samba shares on Linux easily."
arch=("x86_64")
url="https://github.com/Mohamed1242012/smbmnt"
license=('GPL')
depends=('sudo' 'yq' 'util-linux' 'cifs-utils')
makedepends=('git')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}


build() {
	cd "$pkgname"
}

package() {
	cd "$pkgname"
	mkdir -p ~/.config/smbmnt
	install -Dm755 ./smbmnt "$pkgdir/usr/bin/smbmnt"
	if [ ! -f "$HOME/.config/smbmnt/config.yaml" ]; then
    install -Dm755 ./config.yaml "$HOME/.config/smbmnt/config.yaml"
	fi
	install -Dm644 ./README.md "pkgdir/usr/share/doc/smbmnt/README.md"
  install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/smbmnt/LICENSE"
}