summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e84416033e4e92e1ef8c17dc8b8c0a59dda0b40 (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
pkgname=seaweedfs-git
__gitroot=github.com/chrislusf/seaweedfs
pkgver=r2620.7de121d9
pkgrel=2
pkgdesc="Seaweed-FS is a simple and highly scalable distributed file system, written on Go."
arch=('i686' 'x86_64' 'aarch64' 'armv7h' 'armv6h' 'arm')
url="https://github.com/chrislusf/seaweedfs"
license=('APACHE')
depends=( )
makedepends=('git' 'go' 'mercurial' 'gcc')
provides=('seaweedfs')
conflicts=('seaweedfs')
source=("$pkgname::git+https://${__gitroot}")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  install -p -m755 "$srcdir/$pkgname/weed/weed" "$pkgdir/usr/bin"
}

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

# vim:set ts=2 sw=2 et: