Seeded the shellspec package.

This commit is contained in:
Oleg A. Khlybov 2022-06-09 05:10:28 -07:00
parent d2e6cb9133
commit f684ab5f41
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,20 @@
diff -urN shellspec-0.28.1.org/Makefile shellspec-0.28.1/Makefile
--- shellspec-0.28.1.org/Makefile 2021-01-10 21:25:23.000000000 -0800
+++ shellspec-0.28.1/Makefile 2022-06-09 04:03:17.406666800 -0700
@@ -13,11 +13,11 @@
tar -czf shellspec-dist.tar.gz $^ --transform 's,^,shellspec/,'
install:
- install -d "$(BINDIR)" "$(LIBDIR)"
- install stub/shellspec "$(BINDIR)/shellspec"
- find lib libexec -type d -exec install -d "$(LIBDIR)/shellspec/{}" \;
- find LICENSE lib -type f -exec install -m 644 {} "$(LIBDIR)/shellspec/{}" \;
- find shellspec libexec -type f -exec install {} "$(LIBDIR)/shellspec/{}" \;
+ install -d "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(LIBDIR)"
+ install stub/shellspec "$(DESTDIR)/$(BINDIR)/shellspec"
+ find lib libexec -type d -exec install -d "$(DESTDIR)$(LIBDIR)/shellspec/{}" \;
+ find LICENSE lib -type f -exec install -m 644 {} "$(DESTDIR)/$(LIBDIR)/shellspec/{}" \;
+ find shellspec libexec -type f -exec install {} "$(DESTDIR)/$(LIBDIR)/shellspec/{}" \;
uninstall:
rm -rf "$(BINDIR)/shellspec" "$(LIBDIR)/shellspec"

30
shellspec/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Author: Oleg A. Khlybov <fougas@mail.ru>
_realname=shellspec
pkgname=${_realname}
pkgver=0.28.1
pkgrel=1
pkgdesc='BDD style unit testing framework for POSIX compliant shell script'
url='https://shellspec.info'
license=('MIT')
arch=('any')
depends=('bash')
makedepends=()
noextract=(${_realname}-${pkgver}.tar.gz)
source=("${_realname}-${pkgver}.tar.gz::https://github.com/shellspec/shellspec/archive/${pkgver}.tar.gz")
sha256sums=('400d835466429a5fe6c77a62775a9173729d61dd43e05dfa893e8cf6cb511783')
prepare() {
[[ -d ${srcdir}/${pkgname}-${pkgver} ]] && rm -rf ${srcdir}/${pkgname}-${pkgver}
tar -xzf ${srcdir}/${pkgname}-${pkgver}.tar.gz -C ${srcdir}
cd ${srcdir}/${pkgname}-${pkgver}
for p in ${srcdir}/../*patch; do patch -p1 -i $p; done
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" PREFIX=/usr install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_realname}/LICENSE"
}