Date: Monday, August 2, 2021 @ 12:26:43 Author: arodseth Revision: 992420
archrelease: copy trunk to community-x86_64 Added: micro/repos/community-x86_64/PKGBUILD (from rev 992419, micro/trunk/PKGBUILD) Deleted: micro/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 102 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-08-02 12:26:38 UTC (rev 992419) +++ PKGBUILD 2021-08-02 12:26:43 UTC (rev 992420) @@ -1,51 +0,0 @@ -# Maintainer: Morten Linderud <foxbo...@archlinux.org> -# Contributor: Alexander F. Rødseth <xypr...@archlinux.org> -# Contributor: Fredy García <frealgagu at gmail dot com> -# Contributor: Youngbin Han <sukso96...@gmail.com> -# Contributor: blainester <theblainest...@gmail.com> -# Contributor: mar77i <mar77i at protonmail dot ch> - -pkgname=micro -pkgver=2.0.9 -pkgrel=1 -pkgdesc='Modern and intuitive terminal-based text editor' -arch=("aarch64" "armv6h" "armv7h" "i686" "x86_64") -url="https://${pkgname}-editor.github.io/" -license=("MIT") -makedepends=("git" "go") -optdepends=("wl-clipboard: Required for copying/pasting text - wayland" - "xclip: Required for copying/pasting text - xorg") -source=("${pkgname}::git+https://github.com/zyedidia/${pkgname}.git#tag=v${pkgver}") -b2sums=('SKIP') - -build() { - cd "${pkgname}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - # TODO: Figure out how to pass linker flags directly - # probably PR GOFLAGS support upstream. - make build -} - -check() { - cd "${pkgname}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - make test -} - -package() { - cd "${pkgname}" - install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -Dm644 "LICENSE-THIRD-PARTY" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-THIRD-PARTY" - install -Dm644 "assets/packaging/micro.1" -t "${pkgdir}/usr/share/man/man1" - install -Dm544 "assets/packaging/micro.desktop" -t "${pkgdir}/usr/share/applications" - install -Dm644 "assets/micro-logo-mark.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg" -} Copied: micro/repos/community-x86_64/PKGBUILD (from rev 992419, micro/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-08-02 12:26:43 UTC (rev 992420) @@ -0,0 +1,51 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: Alexander F. Rødseth <xypr...@archlinux.org> +# Contributor: Fredy García <frealgagu at gmail dot com> +# Contributor: Youngbin Han <sukso96...@gmail.com> +# Contributor: blainester <theblainest...@gmail.com> +# Contributor: mar77i <mar77i at protonmail dot ch> + +pkgname=micro +pkgver=2.0.9 +pkgrel=2 +pkgdesc='Modern and intuitive terminal-based text editor' +arch=("aarch64" "armv6h" "armv7h" "i686" "x86_64") +url="https://${pkgname}-editor.github.io/" +license=("MIT") +makedepends=("git" "go") +optdepends=("wl-clipboard: Required for copying/pasting text - wayland" + "xclip: Required for copying/pasting text - xorg") +source=("${pkgname}::git+https://github.com/zyedidia/${pkgname}.git#tag=v${pkgver}") +b2sums=('SKIP') + +build() { + cd "${pkgname}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + # TODO: Figure out how to pass linker flags directly + # probably PR GOFLAGS support upstream. + make build +} + +check() { + cd "${pkgname}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + make test +} + +package() { + cd "${pkgname}" + install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "LICENSE-THIRD-PARTY" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-THIRD-PARTY" + install -Dm644 "assets/packaging/micro.1" -t "${pkgdir}/usr/share/man/man1" + install -Dm644 "assets/packaging/micro.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "assets/micro-logo-mark.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg" +}