Skip to content

Instantly share code, notes, and snippets.

@dongsibo

dongsibo/tlp-git.patch

Last active Jan 21, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.