From bf016a80a993e9ae8d1e6a81f49384665427ef3d Mon Sep 17 00:00:00 2001 From: graysky Date: Sat, 12 Aug 2023 14:24:13 -0400 Subject: [PATCH] aur/shonenjump to 0.8.0-2 --- .../0001-store.go-do-not-call-Age.patch | 25 +++++++++++++++++++ aur/shonenjump/PKGBUILD | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 aur/shonenjump/0001-store.go-do-not-call-Age.patch diff --git a/aur/shonenjump/0001-store.go-do-not-call-Age.patch b/aur/shonenjump/0001-store.go-do-not-call-Age.patch new file mode 100644 index 000000000..5196dfa5e --- /dev/null +++ b/aur/shonenjump/0001-store.go-do-not-call-Age.patch @@ -0,0 +1,25 @@ +From a6b29a74b492f8792c74304081e454ef9f314324 Mon Sep 17 00:00:00 2001 +From: graysky +Date: Tue, 1 Nov 2022 07:44:06 -0400 +Subject: [PATCH] store.go: do not call Age() + +--- + jump/store.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/jump/store.go b/jump/store.go +index 855e003..8b4f5d0 100644 +--- a/jump/store.go ++++ b/jump/store.go +@@ -30,7 +30,7 @@ func (s Store) AddPath(pathToAdd string) error { + if err != nil { + return err + } +- oldEntries.Age() ++ // oldEntries.Age() + newEntries := oldEntries.Update(path, defaultWeight) + return s.saveEntries(newEntries) + } +-- +2.38.1 + diff --git a/aur/shonenjump/PKGBUILD b/aur/shonenjump/PKGBUILD index 44e830c9e..318cca432 100644 --- a/aur/shonenjump/PKGBUILD +++ b/aur/shonenjump/PKGBUILD @@ -2,7 +2,7 @@ pkgname=shonenjump pkgver=0.8.0 -pkgrel=1 +pkgrel=2 pkgdesc="A faster way to change directory and improve command line productivity" arch=(x86_64) url="https://github.com/suzaku/shonenjump" @@ -14,6 +14,11 @@ install=readme.install source=("$pkgname-$pkgver.tar.gz::https://github.com/suzaku/shonenjump/archive/refs/tags/v$pkgver.tar.gz") b2sums=('9b46e3a27d29b2b1d3be3a703b90e33f5b4c5e5d3377df12bdcd5eee1efca9c35858b32462b9d100541fa76b59bac3b07f07d37825c83c510edca59504fffaf0') +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i ../0001-store.go-do-not-call-Age.patch +} + build() { cd "$pkgname-$pkgver" CGO_CPPFLAGS="${CPPFLAGS}" CGO_CFLAGS="${CFLAGS}" CGO_CXXFLAGS="${CXXFLAGS}" CGO_LDFLAGS="${LDFLAGS}" \