diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c38535d563ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: theguy147 <yakamoz147 (at) protonmail (dot) com> +pkgname=buffalo-git +pkgver=v0.16.8.r1.g0ffd608c +pkgrel=1 +pkgdesc='A Go web development eco-system, designed to make your project easier.' +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" +} |