summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea6a5ae811dc1d8df1a8194ae1f971057ab163f8 (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: Sebastian Reuße <seb@wirrsal.net>
pkgname=metastore-git
_gitname=metastore
pkgver=v1.1.0.r4.g0350d47
pkgrel=1
pkgdesc="Store and restore metadata from a filesystem."
arch=(i686 x86_64)
url="https://github.com/przemoc/metastore"
license=(GPL)
provides=(metastore)
conflicts=(metastore)
depends=(libbsd)
makedepends=(git)
source=(git+https://github.com/przemoc/metastore)
md5sums=(SKIP)

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

build() {
  cd "$_gitname"
  make
}

package() {
  cd "$_gitname"
  make PREFIX="$pkgdir"/usr install
}