Skip to content

Instantly share code, notes, and snippets.

@dongsibo
Last active January 21, 2020 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dongsibo/c87b65703e6c100859128c0af300be8f to your computer and use it in GitHub Desktop.
Save dongsibo/c87b65703e6c100859128c0af300be8f to your computer and use it in GitHub Desktop.
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