summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f2f6be2b7f50c391ca432425560c416e5384636 (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: MikoĊ‚aj Baranowski <mikolajb@gmail.com>

pkgname=servedir
pkgver=0.2
pkgrel=2
pkgdesc='Simple tool for sharing and uploading files through HTTP protocol.'
license=('MIT')
arch=('x86_64' 'i686')
url='https://github.com/mikolajb/servedir'
depends=()
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mikolajb/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('200b87f62706807d12cbcb5ecadc2caf73299aeb47804a9dd19b7d2bee5b4747')

build() {
  msg2 'Compiling...'

  cd ${srcdir}/${pkgname}-${pkgver}/
  GOPATH="${srcdir}" go build -o servedir
}

package() {
  msg2 'Installing...'

  install -Dm755 ${srcdir}/${pkgname}-${pkgver}/servedir ${pkgdir}/usr/bin/servedir
}