[arch-commits] Commit in mediathekview/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Dec 13 19:11:33 UTC 2021
Date: Monday, December 13, 2021 @ 19:11:33
Author: dvzrv
Revision: 1072082
upgpkg: mediathekview 13.8.1-1: Upgrade to 13.8.1.
This release integrates a log4j version that is not affected by CVE-2021-44228.
Simplify quoting in file.
Use strip-nondeterminism to strip the created jars of non-reproducible timestamps.
Modified:
mediathekview/trunk/PKGBUILD
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++------------------------------
1 file changed, 26 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-13 19:10:55 UTC (rev 1072081)
+++ PKGBUILD 2021-12-13 19:11:33 UTC (rev 1072082)
@@ -2,59 +2,55 @@
_name=MediathekView
pkgname=mediathekview
-pkgver=13.8.0
-pkgrel=2
+pkgver=13.8.1
+pkgrel=1
pkgdesc="Access the Mediathek of many German TV stations"
-arch=('any')
+arch=(any)
url="https://github.com/mediathekview/mediathekview"
-license=('GPL3')
-depends=('bash' 'hicolor-icon-theme' 'java-runtime')
-makedepends=('maven')
-conflicts=('mediathek')
-provides=('mediathek')
-replaces=('mediathek')
-optdepends=('libnotify: to use desktop notifications'
- 'mplayer: for recording streams'
- 'vlc: for stream playback')
+license=(GPL3)
+depends=(bash hicolor-icon-theme java-runtime)
+makedepends=(maven strip-nondeterminism)
+conflicts=(mediathek)
+provides=(mediathek)
+replaces=(mediathek)
+optdepends=(
+ 'libnotify: to use desktop notifications'
+ 'mplayer: for recording streams'
+ 'vlc: for stream playback'
+)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
"de.${pkgname}.${_name}.desktop"
"${pkgname}.sh")
-sha512sums=('67624a5d7303a51ef4d57d0ef6cfbd2bd59ee9e7f0df5aed53a270a7b4ea3270f0eedb41a363cb19062b1b312b4ef144ffc5034720bb58fb3f83cc88af4a3c04'
+sha512sums=('91acae0a5add48fab5d6fff54519eaac1321ad15f052ecb9c9221811eb4b793cf61a52f46d0f7f3377c89a2efaf81949c29363729a33225fff0cbecfbbdf1c3e'
'24a94a078180aca7c50ed7763ef4806c116c27f901f644ef570ee413ffc3ac795b5ebd24d696a9b2ec426e7c9b6eaf8a8b22addb5ac7c9fe9700f7c04305f64b'
'24313f9873aef8680eb466d756c0f537c4d2320e51296f354422bcf70f8f42ffff481c7db0cf58024b2953efb1f7442728e3e977c1ad03aaf3b9c47a535cc6a0')
-b2sums=('c3776a200ccd12253869e3b7fccb51f06a2d2564e0868391f1e761df754b0ec2ad669c8c201b849835a63df79f2944e33d4be0ffca1dee29e882e7b19d17a468'
+b2sums=('536a7f1d71b2893d5605b2b6a4c4cad2f63e4381b9245e8b4cc892de09f7f7848f408247f6777cade68814d57adbc2f73527698bd70259c574c5e214bf8d59dc'
'6dbcdea2918009621fc132b4ff1056ef79f06e27c3299b69ccd7e3cb2b093e3a2a5f76acd6b1ab62689edd867ac1650f61bf829f2a1c575835d31e117d9b9ae5'
'cbf668c6ccfb42b575d40de256ec03bb7863ea7db0bb02586f6727728fb5f1f004169849bfa9082a40b93042dc9c8f330c743e5983847c0a20f5d613748bae60')
-prepare() {
- mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
-}
-
build() {
- cd "${pkgname}-${pkgver}"
+ cd "${_name}-${pkgver}"
./mvnw clean install -Plinux,install4j-linux
+ # Timestamps in JAR files generated by Maven do not honour SOURCE_DATE_EPOCH
+ # (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318)
+ find . -type f -iname "*.jar" -exec strip-nondeterminism --timestamp "$SOURCE_DATE_EPOCH" {} \;
}
package() {
local _size
- cd "${pkgname}-${pkgver}"
+ cd "${_name}-${pkgver}"
# jar
- install -vDm 644 "target/${_name}.jar" \
- -t "${pkgdir}/usr/share/java/${pkgname}"
+ install -vDm 644 "target/${_name}.jar" -t "${pkgdir}/usr/share/java/${pkgname}"
# script
- install -vDm 755 "../${pkgname}.sh" \
- "${pkgdir}/usr/bin/${pkgname}"
+ install -vDm 755 "../${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
# XDG desktop file
- install -vDm 644 "../de.mediathekview.${_name}.desktop" \
- -t "${pkgdir}/usr/share/applications"
+ install -vDm 644 "../de.mediathekview.${_name}.desktop" -t "${pkgdir}/usr/share/applications"
# icons
for _size in 16 32 48 128; do
- install -vDm 644 "target/${_name}@x${_size}.png" \
- "${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/apps/${pkgname}.png"
+ install -vDm 644 "target/${_name}@x${_size}.png" "${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/apps/${pkgname}.png"
done
- install -vDm 644 res/${_name}.svg \
- -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
+ install -vDm 644 res/${_name}.svg -t "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
# docs
install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
More information about the arch-commits
mailing list