diff options
author | Oluf Lorenzen | 2019-09-18 22:27:56 +0200 |
---|---|---|
committer | Oluf Lorenzen | 2019-09-18 22:27:56 +0200 |
commit | 4698fe832907f0a2b003fef59b2d4f65b7ff118e (patch) | |
tree | 457677538372eca6169aae53ea5b92985bbafaad | |
download | aur-4698fe832907f0a2b003fef59b2d4f65b7ff118e.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cf8623244a74 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = go-fac-git + pkgdesc = Easy-to-use CUI for fixing git conflicts + pkgver = r202.b1d27a1 + pkgrel = 1 + url = https://github.com/mkchoi212/fac + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = go + provides = go-fac + conflicts = go-fac + +pkgname = go-fac-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c7834178dcc9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Oluf Lorenzen <finkregh at mafia-server dot net> +pkgname=go-fac-git +pkgver=r202.b1d27a1 +pkgrel=1 +epoch= +pkgdesc="Easy-to-use CUI for fixing git conflicts" +arch=('i686' 'x86_64') +url="https://github.com/mkchoi212/fac" +license=('MIT') +groups=() +depends=('') +makedepends=('git' 'go') +optdepends=() +checkdepends=() +provides=('go-fac') +conflicts=('go-fac') +replaces=() +backup=() +options=() +changelog= +install= +noextract=() +_gourl=github.com/mkchoi212/fac + +pkgver() { + GOPATH="$srcdir" go get -d ${_gourl} + cd "$srcdir/src/${_gourl}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + GOPATH="$srcdir" go get -fix -v ${_gourl} +} + +package() { + cd "$srcdir" + install -Dm755 bin/fac "$pkgdir/usr/bin/fac" + install -Dm644 src/${_gourl}/README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md + install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE +} |