summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bb76fb049ce31d84874d5a1887bc2af3cfcbfba (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
# Maintainer: Spreagtha <spreagtha at  mykolab dot com>
# Contributor: Vasket <vasket at  dismail dot de>

pkgname="brig"
pkgver="0.4.1"
pkgrel="1"
pkgdesc="File synchronization on top of ipfs with git like interface and web based UI"
arch=(x86_64 i686 armv7h aarch64)
license=("AGPLv3")
url="https://github.com/sahib/${pkgname}"
depends=(go)
provides=("brig")
conflicts=("brig-git")

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sahib/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=("SKIP")

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    GOBIN="${srcdir}/${pkgname}-${pkgver}" go run mage.go b
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}