From 76f0ba5644ccc8e9956aa4f2614a5499d34cb1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Thu, 11 Apr 2024 19:42:55 +0200 Subject: [PATCH] upgpkg: rcedit-bin 2.0.0-4: refactor * Refactor PKGBUILD * Remove redundant .gitignore --- rcedit-bin/.SRCINFO | 15 +++++++-------- rcedit-bin/.gitignore | 14 -------------- rcedit-bin/PKGBUILD | 33 ++++++++++++++++---------------- rcedit-bin/{rcedit => rcedit.sh} | 0 4 files changed, 23 insertions(+), 39 deletions(-) delete mode 100644 rcedit-bin/.gitignore rename rcedit-bin/{rcedit => rcedit.sh} (100%) diff --git a/rcedit-bin/.SRCINFO b/rcedit-bin/.SRCINFO index 2333d0a..0a22d92 100644 --- a/rcedit-bin/.SRCINFO +++ b/rcedit-bin/.SRCINFO @@ -1,19 +1,18 @@ pkgbase = rcedit-bin pkgdesc = Command line tool to edit resources of windows exe files pkgver = 2.0.0 - pkgrel = 3 - url = https://github.com/electron/rcedit/ + pkgrel = 4 + url = https://github.com/electron/rcedit arch = any license = MIT depends = wine provides = rcedit conflicts = rcedit - conflicts = rcedit-git source = https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe - source = https://raw.githubusercontent.com/electron/rcedit/b807b34a644c86c0b0d89c7f073967e79202731a/LICENSE - source = rcedit - sha256sums = 3e7801db1a5edbec91b49a24a094aad776cb4515488ea5a4ca2289c400eade2a - sha256sums = 224fcc506ef97afd088b487edab374abcad7e3d4de55fb8cce4f04328397213f - sha256sums = e599937ebd901f89899794ed78f1ca8fc6348efd996600f6c074cf39ef3a625e + source = https://raw.githubusercontent.com/electron/rcedit/v2.0.0/LICENSE + source = rcedit.sh + sha512sums = c13e7ffd60169c348e16a3ea59a171c1777acdb241f950c11a6e9b69c955a3a4eb3432182aee7f489a87a555d0bd51fde3b597826f7c1e6488f1f5097359ab4d + sha512sums = ca664e9ec12e6e23878c55f2b56e44fac50fc8b88c71499a4794fe3a0e8de18008c7435970628c8386410534dd5cc27af3ea5e7a818d6244f6159bc183969638 + sha512sums = ce46f14c4e7c945c69fdfbc48bfd22c8241f653a974f4950d8378bb81943144f5b3ee2e49cb08a26637c46558327184c6504714f7e781f86fbf7b0c64f561bd0 pkgname = rcedit-bin diff --git a/rcedit-bin/.gitignore b/rcedit-bin/.gitignore deleted file mode 100644 index b388f09..0000000 --- a/rcedit-bin/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -*.tar -*.tar.* -*.jar -*.exe -*.msi -*.zip -*.tgz -*.log -*.log.* -*.sig - -pkg/ -src/ -LICENSE diff --git a/rcedit-bin/PKGBUILD b/rcedit-bin/PKGBUILD index 56e0b2a..1ccd122 100644 --- a/rcedit-bin/PKGBUILD +++ b/rcedit-bin/PKGBUILD @@ -1,27 +1,26 @@ -# Maintainer: jdigi78 +# Maintainer: Manuel Hüsers +# Contributor: jdigi78 pkgname=rcedit-bin +_pkgname=${pkgname%-bin} pkgver=2.0.0 -pkgrel=3 - -source=("https://github.com/electron/rcedit/releases/download/v$pkgver/rcedit-x64.exe" - "https://raw.githubusercontent.com/electron/rcedit/b807b34a644c86c0b0d89c7f073967e79202731a/LICENSE" - "rcedit") - -sha256sums=('3e7801db1a5edbec91b49a24a094aad776cb4515488ea5a4ca2289c400eade2a' - '224fcc506ef97afd088b487edab374abcad7e3d4de55fb8cce4f04328397213f' - 'e599937ebd901f89899794ed78f1ca8fc6348efd996600f6c074cf39ef3a625e') - +pkgrel=4 pkgdesc='Command line tool to edit resources of windows exe files' arch=('any') -url='https://github.com/electron/rcedit/' +url="https://github.com/electron/${_pkgname}" license=('MIT') depends=('wine') -provides=('rcedit') -conflicts=('rcedit' 'rcedit-git') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("https://github.com/electron/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-x64.exe" + "https://raw.githubusercontent.com/electron/${_pkgname}/v${pkgver}/LICENSE" + "${_pkgname}.sh") +sha512sums=('c13e7ffd60169c348e16a3ea59a171c1777acdb241f950c11a6e9b69c955a3a4eb3432182aee7f489a87a555d0bd51fde3b597826f7c1e6488f1f5097359ab4d' + 'ca664e9ec12e6e23878c55f2b56e44fac50fc8b88c71499a4794fe3a0e8de18008c7435970628c8386410534dd5cc27af3ea5e7a818d6244f6159bc183969638' + 'ce46f14c4e7c945c69fdfbc48bfd22c8241f653a974f4950d8378bb81943144f5b3ee2e49cb08a26637c46558327184c6504714f7e781f86fbf7b0c64f561bd0') package() { - install -Dm755 "rcedit-x64.exe" "$pkgdir/opt/rcedit/rcedit-x64.exe" - install -Dm755 "rcedit" "$pkgdir/usr/bin/rcedit" - install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm755 "${_pkgname}-x64.exe" "${pkgdir}/opt/${_pkgname}/${_pkgname}-x64.exe" + install -Dm755 "${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" } diff --git a/rcedit-bin/rcedit b/rcedit-bin/rcedit.sh similarity index 100% rename from rcedit-bin/rcedit rename to rcedit-bin/rcedit.sh