From 370eb2d377a06f5366eb4d662ce82b84ff8ff5ab Mon Sep 17 00:00:00 2001 From: zxp19821005 Date: Fri, 14 Feb 2025 14:07:48 +0800 Subject: [PATCH] update to fix errors --- .SRCINFO | 3 ++- PKGBUILD | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 95c634e3acd7..26c56cec8e24 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,12 +1,13 @@ pkgbase = text-diff-view-bin pkgdesc = Multi-platform text diff (text comparison) view electron app and web. Text-only.(Prebuilt version.Use system-wide electron) pkgver = 1.4.3 - pkgrel = 1 + pkgrel = 2 url = https://sandbox.saino.me/text-diff-view/ arch = x86_64 license = MIT makedepends = fuse2 depends = electron31 + provides = text-diff-view=1.4.3 conflicts = text-diff-view source = text-diff-view-1.4.3.AppImage::https://github.com/kaishuu0123/text-diff-view/releases/download/v1.4.3/text-diff-view-1.4.3.AppImage source = LICENSE-1.4.3::https://raw.githubusercontent.com/kaishuu0123/text-diff-view/v1.4.3/LICENSE diff --git a/PKGBUILD b/PKGBUILD index 58bc7a6a4e72..e7140ad611d5 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,14 +3,14 @@ pkgname=text-diff-view-bin _pkgname="Text Diff View" pkgver=1.4.3 _electronversion=31 -pkgrel=1 +pkgrel=2 pkgdesc="Multi-platform text diff (text comparison) view electron app and web. Text-only.(Prebuilt version.Use system-wide electron)" arch=('x86_64') url="https://sandbox.saino.me/text-diff-view/" _ghurl="https://github.com/kaishuu0123/text-diff-view" license=('MIT') conflicts=("${pkgname%-bin}") -prodives=("${pkgname%-bin}=${pkgver}") +provides=("${pkgname%-bin}=${pkgver}") depends=( "electron${_electronversion}" ) @@ -25,7 +25,7 @@ source=( sha256sums=('65935b143719c7554874abe44f3297f9a903b0a9f268d96901b3eb2efd0c2511' '2db6d2f8319742e183737299159ca2a72096629542c080492f13770b7d305c3b' '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980') -build() { +prepare() { sed -e " s/@electronversion@/${_electronversion}/g s/@appname@/${pkgname%-bin}/g @@ -45,4 +45,4 @@ package() { install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/512x512/apps/${pkgname%-bin}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png" install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} +} \ No newline at end of file