Created
May 8, 2022 04:32
-
-
Save nosada/051eb7be82c6b615b16bb4d702fed47b to your computer and use it in GitHub Desktop.
Patch for pacmatic package to support redirecting of Arch Linux news feed (use this on `asp checkout pacmatic`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- pacmatic.orig 2015-01-27 01:28:50.000000000 +0900 | |
+++ pacmatic 2022-05-08 13:29:13.117273251 +0900 | |
@@ -54,7 +54,7 @@ | |
{ | |
# make xml less unfriendly to grep | |
# escape \n | remove literal \n | opening tags get a line | |
- curl --connect-timeout 10 -s -o - "$rss_feed" | \ | |
+ curl --location --connect-timeout 10 -s -o - "$rss_feed" | \ | |
sed "s/^/\\\\n/g" | tr -s "\r\n" " " | sed -r "s/<[^\/]/\n&/g" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD | |
index 57c1eaa..397abac 100644 | |
--- a/trunk/PKGBUILD | |
+++ b/trunk/PKGBUILD | |
@@ -1,7 +1,7 @@ | |
# Maintainer: Kyle Keen <keenerd@gmail.com> | |
pkgname=pacmatic | |
pkgver=20150126 | |
-pkgrel=3 | |
+pkgrel=4 | |
pkgdesc="A pacman wrapper to avoid bricking your system and such other surprises." | |
arch=('any') | |
url="http://kmkeen.com/pacmatic/" | |
@@ -12,12 +12,15 @@ optdepends=('vim: for vimdiff' | |
'python-html2text: for prettier news' | |
'fakeroot: for cron-pacmatic script') | |
source=("http://kmkeen.com/$pkgname/$pkgname-$pkgver.tar.gz" | |
- "_pacmatic") | |
+ "_pacmatic" | |
+ "pacmatic.patch") | |
md5sums=('5998de70777bc5df373fbf230787a4c7' | |
- '1c369c8fe595cbb41d04e214efd39a1e') | |
+ '1c369c8fe595cbb41d04e214efd39a1e' | |
+ '96c44e5a3248aa8598bafb967ba2e26d') | |
package() { | |
cd "$srcdir/$pkgname" | |
+ patch -p0 < ../pacmatic.patch | |
install -Dm0755 pacmatic "$pkgdir/usr/bin/pacmatic" | |
install -Dm0755 cron-pacmatic "$pkgdir/usr/bin/cron-pacmatic" | |
install -Dm0644 pacmatic.1 "$pkgdir/usr/share/man/man1/pacmatic.1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment