Skip to content

Commit

Permalink
Add a patch to upstream issue #103 + Switch license to SPDX identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Feb 7, 2024
1 parent a82dcbc commit f6966f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pkgbase = arch-update
pkgdesc = An update notifier/applier that assists you with important pre/post update tasks.
pkgver = 1.10.1
pkgrel = 1
pkgrel = 2
url = https://github.com/Antiz96/arch-update
arch = any
license = GPL3
license = GPL-3.0-or-later
depends = pacman-contrib
depends = curl
depends = htmlq
Expand All @@ -17,6 +17,8 @@ pkgbase = arch-update
optdepends = sudo: Privilege elevation
optdepends = doas: Privilege elavation
source = arch-update-1.10.1.tar.gz::https://github.com/Antiz96/arch-update/archive/v1.10.1.tar.gz
source = fix_flatpak_updates_detection.patch::https://github.com/Antiz96/arch-update/commit/ec8a61c1add94877cce05f73b3ea9cf83f354b1a.patch
sha256sums = 4cc4ccee9af80ec347c2d444e1ae43ce323cd05fd13d0d750f886fa190a78c85
sha256sums = 029d84a448592287c5d3660a894fc23b0b32d251d97ccbb884760add0a59cbc6

pkgname = arch-update
17 changes: 13 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

pkgname=arch-update
pkgver=1.10.1
pkgrel=1
pkgrel=2
pkgdesc="An update notifier/applier that assists you with important pre/post update tasks."
arch=('any')
url="https://github.com/Antiz96/arch-update"
license=('GPL3')
license=('GPL-3.0-or-later')
depends=('pacman-contrib' 'curl' 'htmlq' 'diffutils')
optdepends=('yay: AUR support'
'paru: AUR support'
Expand All @@ -15,8 +15,17 @@ optdepends=('yay: AUR support'
'vim: Default merge program for pacdiff'
'sudo: Privilege elevation'
'doas: Privilege elavation')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('4cc4ccee9af80ec347c2d444e1ae43ce323cd05fd13d0d750f886fa190a78c85')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
"fix_flatpak_updates_detection.patch::https://github.com/Antiz96/arch-update/commit/ec8a61c1add94877cce05f73b3ea9cf83f354b1a.patch")
sha256sums=('4cc4ccee9af80ec347c2d444e1ae43ce323cd05fd13d0d750f886fa190a78c85'
'029d84a448592287c5d3660a894fc23b0b32d251d97ccbb884760add0a59cbc6')

prepare() {
cd "${pkgname}-${pkgver}"
# Temporary patch to make the Flatpak packages updates detection more robust and avoid eventual false positives
# See https://github.com/Antiz96/arch-update/pull/104
patch -Np1 <"${srcdir}/fix_flatpak_updates_detection.patch"
}

package() {
cd "${pkgname}-${pkgver}"
Expand Down

0 comments on commit f6966f2

Please sign in to comment.