summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfc7c3d940e1c767c66e50449328af1355df0840 (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
# Maintainer: siers <wimuan@gmail.com>
# vim: ts=2 sw=2
pkgname=massren
pkgver=20160913
pkgrel=1
pkgdesc="Bash wrapper for pacman and aur"
pkgdesc="Easily rename multiple files using your text editor"
url="https://github.com/laurent22/massren"
license=("MIT")
arch=('any')
makedepends=('git' 'go')
depends=()
optdepends=()
source=()
md5sums=()

build() {
  export GOPATH="$srcdir"
  export GOBIN="$srcdir/bin"
  export PATH=$PATH:$GOPATH/bin

  go get github.com/laurent22/massren
  cd src/github.com/laurent22/massren
  go build
}

package() {
  sed -n '/## License/,$p' "$srcdir/src/github.com/laurent22/massren/README.md" > "$srcdir/LICENSE"
  install -Dm644 "$srcdir/LICENSE" ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  install -Dm755 "bin/massren" "$pkgdir/usr/bin/massren"
}