Andreas Schleifer pushed to branch main at Arch Linux / Packaging / Packages /
ruby-redcloth
Commits:
2a11bea3 by Andreas Schleifer at 2024-11-18T21:55:12+01:00
upgpkg: 4.3.4-3; remove unreproducable files
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = ruby-redcloth
pkgdesc = Textile parser for Ruby
pkgver = 4.3.4
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/jgarber/redcloth
arch = x86_64
license = MIT
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=ruby-redcloth
pkgver=4.3.4
-pkgrel=2
+pkgrel=3
pkgdesc='Textile parser for Ruby'
arch=(x86_64)
url='https://github.com/jgarber/redcloth'
@@ -45,18 +45,32 @@ build() {
--install-dir "tmp_install/$_gemdir" \
--bindir "tmp_install/usr/bin" \
RedCloth-$pkgver.gem
- find "tmp_install/$_gemdir/gems/" \
+
+ # remove unreproducible files
+ rm --force --recursive --verbose \
+ "tmp_install${_gemdir}/cache/" \
+ "tmp_install${_gemdir}/gems/${_gemname}-${pkgver}/vendor/" \
+ "tmp_install${_gemdir}/doc/${_gemname}-${pkgver}/ri/ext/"
+
+ find "tmp_install${_gemdir}/gems/" \
+ -type f \
+ \( \
+ -iname "*.o" -o \
+ -iname "*.c" -o \
+ -iname "*.so" -o \
+ -iname "*.time" -o \
+ -iname "gem.build_complete" -o \
+ -iname "Makefile" \
+ \) \
+ -delete
+
+ find "tmp_install${_gemdir}/extensions/" \
-type f \
\( \
- -iname "*.o" -o \
- -iname "*.c" -o \
- -iname "*.so" -o \
- -iname "*.time" -o \
- -iname "gem.build_complete" -o \
- -iname "Makefile" \
+ -iname "mkmf.log" -o \
+ -iname "gem_make.out" \
\) \
-delete
- rm -r tmp_install/$_gemdir/cache
}
check() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-redcloth/-/commit/2a11bea3743865480af5fa382788c5d826e0bdb7
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-redcloth/-/commit/2a11bea3743865480af5fa382788c5d826e0bdb7
You're receiving this email because of your account on gitlab.archlinux.org.