Date: Saturday, March 21, 2020 @ 16:22:40 Author: svenstaro Revision: 602803
archrelease: copy trunk to community-x86_64 Added: tokei/repos/community-x86_64/PKGBUILD (from rev 602802, tokei/trunk/PKGBUILD) Deleted: tokei/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 59 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 28 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-03-21 16:22:27 UTC (rev 602802) +++ PKGBUILD 2020-03-21 16:22:40 UTC (rev 602803) @@ -1,28 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> -pkgname=tokei -pkgver=10.1.2 -pkgrel=1 -pkgdesc='A blazingly fast CLOC (Count Lines Of Code) program' -arch=('x86_64') -url="https://github.com/Aaronepower/tokei" -license=('MIT' 'Apache') -depends=('gcc-libs') -makedepends=('rust' 'cargo') -source=("$pkgname-$pkgver.tar.gz::https://github.com/Aaronepower/tokei/archive/v${pkgver}.tar.gz") -sha512sums=('328cae05d1b1dd966fb4f47df3550c78c15a8f4db7f3aa9ac3e630e8b61488e5e23ebe4d4f2f07a6db629686dd6db7227628acbb2986aa43ee5fe656eeacc9cc') - -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - - # --locked won't work until https://github.com/XAMPPRocky/tokei/issues/360 is fixed. - cargo build --release --features all -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - install -Dm755 target/release/tokei "${pkgdir}/usr/bin/tokei" - - install -Dm644 LICENCE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" - install -Dm644 LICENCE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE" -} Copied: tokei/repos/community-x86_64/PKGBUILD (from rev 602802, tokei/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-03-21 16:22:40 UTC (rev 602803) @@ -0,0 +1,31 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +pkgname=tokei +pkgver=11.0.0 +pkgrel=1 +pkgdesc='A blazingly fast CLOC (Count Lines Of Code) program' +arch=('x86_64') +url="https://github.com/Aaronepower/tokei" +license=('MIT' 'Apache') +depends=('gcc-libs') +makedepends=('rust' 'cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/Aaronepower/tokei/archive/v${pkgver}.tar.gz") +sha512sums=('630eff2fb645c6e8c3b66014dd5787b0c0f7934604c77b093cf0d6070200d553336522db1bd15707a5551a0372266a94593d4756995ad848d0c856a4b49b35e9') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + cargo build --release --locked --features all +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + cargo test --release --locked --features all +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -Dm755 target/release/tokei "${pkgdir}/usr/bin/tokei" + + install -Dm644 LICENCE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + install -Dm644 LICENCE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE" +}