summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 793bfcb4c9aaa7bedb763fbd8bf0a9010b228d49 (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: Adler Neves <adlerosn@gmail.com>

_pkgname='cicpoffs'
provides=(_pkgname)
conflicts=(_pkgname)
pkgver=0.0.1.r1.efe8871
pkgname="$_pkgname-git"
pkgrel=1
pkgdesc="Case-Insensitive Case-Preserving Overlay FUSE File System"
arch=('any')
depends=('fuse' 'attr')
makedepends=('fuse' 'attr')
url="https://github.com/adlerosn/cicpoffs"
options=()
license=('GPL2')
source=('cicpoffs::git+https://github.com/adlerosn/cicpoffs')
sha512sums=('SKIP')

pkgver() {
  cd cicpoffs
  git show master:cicpoffs.cpp | grep "#define VERSION" | cut -d\" -f2 | tr -d '\n'
  printf ".r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  make -C "${srcdir}"/$_pkgname
}

package() {
  mkdir -p "${pkgdir}"/usr/bin
  cp "${srcdir}"/$_pkgname/$_pkgname "${pkgdir}"/usr/bin
  ln -s $_pkgname "${pkgdir}"/usr/bin/mount.$_pkgname
}