diff options
author | Robert Führicht | 2018-08-07 13:50:45 +0200 |
---|---|---|
committer | Robert Führicht | 2018-08-07 13:53:49 +0200 |
commit | 3f5469250c72c248e0ef980fe41d29b0d198a165 (patch) | |
tree | 22ff9c1435ac8d2b9eff33ac10089d97a0fb33dd | |
download | aur-3f5469250c72c248e0ef980fe41d29b0d198a165.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..193f57f21759 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lazygit-git + pkgdesc = A simple terminal UI for git commands + pkgver = r180.acae855 + pkgrel = 1 + url = https://github.com/jesseduffield/lazygit + arch = x86_64 + license = MIT + makedepends = go-pie + makedepends = git + depends = glibc + source = git+https://github.com/jesseduffield/lazygit#commit=acae855ace3973468fe697c9c4437bd0b76a705d + sha512sums = SKIP + +pkgname = lazygit-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e0a867ca5333 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.pkg.tar.xz +*.tar.gz +/pkg/ +/lazygit/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1a4f5f2da6f1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer : fuero <fuerob@gmail.com> +pkgname='lazygit-git' +pkgdesc='A simple terminal UI for git commands' +pkgrel=1 +pkgver=r180.acae855 +_repo_prefix='github.com/jesseduffield' +_repo_name="${pkgname/-git}" +url="https://${_repo_prefix}/${_repo_name}" +license=('MIT') +arch=('x86_64') +makedepends=('go-pie' 'git') +depends=('glibc') +_commit='acae855ace3973468fe697c9c4437bd0b76a705d' +source=("git+https://${_repo_prefix}/${_repo_name}#commit=${_commit}") +sha512sums=('SKIP') + +pkgver() { + cd "$_repo_name" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare () { + export GOPATH="${srcdir}" + export PATH="$PATH:$GOPATH/bin" + mkdir -p "src/${_repo_prefix}" + cp -R "${_repo_name}" "src/${_repo_prefix}" +} + +build () { + cd "src/${_repo_prefix}/${_repo_name}" + go build -o ${_repo_name} +} + +package () { + cd "src/${_repo_prefix}/${_repo_name}" + install -Dm755 ${_repo_name} "${pkgdir}/usr/bin/${_repo_name}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + for file in README.md ; do + install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}" + done +} |