diff options
author | mar77i | 2017-12-16 22:52:55 +0100 |
---|---|---|
committer | mar77i | 2017-12-16 22:52:55 +0100 |
commit | 714f289429a317ee2266abc3559604f7c0652b9b (patch) | |
tree | a3a5713b619c9842a00faf512d678baf9dad40fd /PKGBUILD | |
parent | df9d240513d7a0f8001368e54754806e5f8bfcd6 (diff) | |
download | aur-714f289429a317ee2266abc3559604f7c0652b9b.tar.gz |
what a mess. packaging the latest release that builds, as labeled
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -2,7 +2,7 @@ # Contributor: blainester <theblainestory@gmail.com> # Contributor: mar77i <mar77i at protonmail dot ch> pkgname=micro -pkgver=1.3.4 +pkgver=1.3.3 pkgrel=5 pkgdesc="A modern and intuitive terminal-based text editor" arch=('x86_64' 'i686') @@ -11,23 +11,23 @@ license=('MIT') depends=("go") optdepends=('xclip: Required for copying/pasting text') conflicts=("micro-git") +_giturl=github.com/zyedidia/micro -source=("https://github.com/zyedidia/$pkgname/archive/v$pkgver.tar.gz") - -sha256sums=('SKIP') +prepare() { + export GOPATH="${srcdir}" + go get -v -d "${_giturl}/..." + cd "${GOPATH}/src/${_giturl}" + git checkout "tags/v${pkgver}" + sed -r -i 's/^(build:).*$/\1/' Makefile +} build() { - export GOPATH="$srcdir" - mkdir -p "src/github.com/zyedidia" - mv "${pkgname}-${pkgver}" "src/github.com/zyedidia/micro" - cd "${srcdir}/src/github.com/zyedidia" - go get -x -v ./... - sed -r -i 's/^(build:).*$/\1/' Makefile + cd "${GOPATH}/src/${_giturl}" make } package() { - cd "${srcdir}/src/github.com/zyedidia" - install -Dm755 "${srcdir}/${pkgname}-${pkgver}/micro" "${pkgdir}/usr/bin/micro" - install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" + cd "${GOPATH}/src/${_giturl}" + install -Dm755 "./micro" "${pkgdir}/usr/bin/micro" + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" } |