Levente Polyak pushed to branch main at Arch Linux / Packaging / Packages / bats-support
Commits: c97e0edf by Felix Yan at 2023-11-21T18:38:15+02:00 upgpkg: 0.3.0-4: update upstream url - - - - - a45a7d10 by Levente Polyak at 2023-12-16T00:15:30+01:00 upgpkg: 0.3.0-5: rename and use canonical usr/lib/bats/bats-support Fix packaging locations so bats plugin autodetection features work. - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,16 @@ +pkgbase = bats-support + pkgdesc = Supporting library for Bats test helpers + pkgver = 0.3.0 + pkgrel = 4 + url = https://github.com/bats-core/bats-support + arch = any + license = custom:CC0 + checkdepends = coreutils + depends = bash + depends = bats + replaces = bash-bats-support + source = https://github.com/bats-core/bats-support/archive/refs/tags/v0.3.0/bats-support-0.3.0.tar.gz + sha512sums = 417a8054462a44a6f46e375526cc1c920bae54ea76ddec3ff46603fe68bdb5c58f51bfb1c7e066347a3b71ff4d43986fd5157eb55151e0c4b5d189d81282ea14 + b2sums = 2cd488f420e2e1975f744aa15fb84e7e34b2226b06dcc6dc2959404e267d0d08b5c218b34da8e14b49ffb5c430545a2153c889904ccd08c74a7861495bca9c3d + +pkgname = bats-support ===================================== PKGBUILD ===================================== @@ -1,34 +1,39 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> # Maintainer: Felix Yan <felixonm...@archlinux.org> # Contributor: Jan-Erik Rediger <badboy at archlinux dot us> -pkgname=bash-bats-support +pkgname=bats-support pkgver=0.3.0 -pkgrel=3 -pkgdesc="Supporting library for Bats test helpers" -arch=("any") -url="https://github.com/ztombol/bats-support" +pkgrel=5 +pkgdesc='Supporting library for Bats test helpers' +url='https://github.com/bats-core/bats-support' +arch=(any) license=("custom:CC0") -depends=('bash-bats') -source=("https://github.com/ztombol/bats-support/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +depends=( + bash + bats +) +checkdepends=( + coreutils +) +replaces=(bash-bats-support) +source=(${url}/archive/refs/tags/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha512sums=('417a8054462a44a6f46e375526cc1c920bae54ea76ddec3ff46603fe68bdb5c58f51bfb1c7e066347a3b71ff4d43986fd5157eb55151e0c4b5d189d81282ea14') +b2sums=('2cd488f420e2e1975f744aa15fb84e7e34b2226b06dcc6dc2959404e267d0d08b5c218b34da8e14b49ffb5c430545a2153c889904ccd08c74a7861495bca9c3d') check() { - cd bats-support-$pkgver - bats test + cd "${pkgname}-${pkgver}" + bats --jobs "$(nproc)" --tap test } package() { - cd bats-support-$pkgver + cd "${pkgname}-${pkgver}" - for fn in *.bash; do - install -Dm755 $fn \ - "$pkgdir"/usr/lib/bats-support/$(basename $fn) - done + install -Dm 644 *.bash -t "${pkgdir}/usr/lib/bats/${pkgname}" + install -Dm 644 src/*.bash -t "${pkgdir}/usr/lib/bats/${pkgname}/src" - for fn in src/*.bash; do - install -Dm755 $fn \ - "$pkgdir"/usr/lib/bats-support/src/$(basename $fn) - done - - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}" } + +# vim: ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/bats-support/-/compare/7cf7562e1e596f51aa030272bad0e2412480b96c...a45a7d10a2a8dd9f2a9f98d50d5c9bc2b0c3d4c9 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/bats-support/-/compare/7cf7562e1e596f51aa030272bad0e2412480b96c...a45a7d10a2a8dd9f2a9f98d50d5c9bc2b0c3d4c9 You're receiving this email because of your account on gitlab.archlinux.org.