# Maintainer: nycko123 # Contributor: haawda # All the credits go to: # Previous Maintainer (27.04.2016 - 15.10.2017): Youngbin Han # Previous Contributor: blainester pkgname=micro-bin pkgver=2.0.5 pkgrel=1 pkgdesc="A modern and intuitive terminal-based text editor" arch=('x86_64' 'i686') url="https://github.com/zyedidia/micro" license=('MIT') optdepends=('xclip: Required for copying/pasting text') conflicts=('micro-git' 'micro' 'micro-nightly-bin') provides=('micro') source_x86_64=("https://github.com/zyedidia/micro/releases/download/v${pkgver}/micro-${pkgver}-linux64.tar.gz") source_i686=("https://github.com/zyedidia/micro/releases/download/v${pkgver}/micro-${pkgver}-linux32.tar.gz") sha256sums_x86_64=('4f159a4b8a08c48559bd94b3aacdca9a6188af0f9919fec61e01dde44f0f4fa0') sha256sums_i686=('6b60ca069e9b28d1d8ddb3d70a191bab8a588b5eb8903b1fab794789521bf37d') package(){ install -Dm755 "${srcdir}/${pkgname%-*}-${pkgver}/${pkgname%-*}" "${pkgdir}/usr/bin/${pkgname%-*}" install -Dm644 "${srcdir}/${pkgname%-*}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname%-*}/LICENSE" for _file in "${srcdir}/${pkgname%-*}-${pkgver}/"*.md; do install -Dm644 "${_file}" "${pkgdir}/usr/share/doc/${pkgname%-*}/$(basename ${_file})" done }