blob: d2b12d07d240891cb360282f2dfaff5a0f37dc68 (
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
33
34
|
# Maintainer: theguy147 <yakamoz147 (at) protonmail (dot) com>
pkgname=buffalo-git
pkgver=v0.16.13.r0.g0260f6e5
pkgrel=1
pkgdesc='A Go web development eco-system, designed to make your project easier. (git version)'
arch=('x86_64')
url="https://github.com/gobuffalo/buffalo/"
license=('MIT')
makedepends=('git')
depends=('go>=1.13')
optdepends=('nodejs>=8: frontend'
'npm: asset pipeline'
'yarn: frontend dependency management'
'gcc: for building sqlite3 support'
'git: for VCS support')
conflicts=('buffalo-bin')
source=("$pkgname::git+https://github.com/gobuffalo/buffalo.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
go build -o dist/buffalo ./buffalo
}
package() {
cd "$pkgname"
install -Dm755 "dist/buffalo" "$pkgdir/usr/bin/buffalo"
install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/buffalo/LICENSE"
}
|