Last active
January 21, 2020 21:23
-
-
Save dongsibo/c87b65703e6c100859128c0af300be8f to your computer and use it in GitHub Desktop.
Patch for AUR tlp-git PKGBUILD: https://aur.archlinux.org/cgit/aur.git/commit/?h=tlp-git&id=2e16d2c2ce2ee76759975ae390dc7400ccaccd91
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/PKGBUILD b/PKGBUILD | |
index cfe0516..f157bb7 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -6,7 +6,7 @@ pkgname=( | |
tlp-git | |
tlp-rdw-git | |
) | |
-pkgver=1.3.0b1.r1.e2fbc0c | |
+pkgver=1.3.0.b3 | |
pkgrel=1 | |
arch=(any) | |
url=https://linrunner.de/en/tlp/tlp.html | |
@@ -18,7 +18,10 @@ sha256sums=(SKIP) | |
pkgver() { | |
cd TLP | |
- git describe --tags | sed 's/–alpha./.a/; s/–beta./.b/; s/-/.r/; s/-g/./' | |
+ # Upstream alternates between em dashes and hyphens in the tags of their | |
+ # alpha and beta releases (e.g. 1.3.0-beta.{1,2} contain em dashes while | |
+ # 1.3.0-beta.3 contains a hyphen). | |
+ # linrunner has indicated that tags should only contain hyphens; em dashes | |
+ # were not intentional: https://github.com/linrunner/TLP/issues/449#issuecomment-576028339 | |
+ git describe --tags | sed 's/\(–\|-\)alpha./.a/; s/\(–\|-\)beta./.b/; s/-/.r/; s/-g/./' | |
} | |
package_tlp-git() { | |
@@ -46,7 +49,7 @@ package_tlp-git() { | |
pm-utils | |
tlp | |
) | |
- backup=(etc/default/tlp) | |
+ backup=(etc/tlp.conf) | |
export TLP_NO_INIT=1 | |
export TLP_SBIN=/usr/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment