summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD39
3 files changed, 28 insertions, 29 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bfdf6ab5c0f..1396082ef5b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = tldr++
pkgdesc = Community driven man pages improved with smart user interaction
- pkgver = 0.6.1
- pkgrel = 8
+ pkgver = 1.0.0.alpha
+ pkgrel = 1
url = https://isacikgoz.me/tldr
arch = i686
arch = x86_64
@@ -9,16 +9,15 @@ pkgbase = tldr++
arch = aarch64
license = MIT
makedepends = go
- makedepends = dep
- makedepends = git
provides = tldr
conflicts = tldr
conflicts = nodejs-tldr
conflicts = tldr-bash-git
+ conflicts = tealdeer
conflicts = tldr-cpp-client
conflicts = tldr-python-client
- source = tldr++-0.6.1.tar.gz::https://github.com/isacikgoz/tldr/archive/v0.6.1.tar.gz
- sha256sums = e377942c6dd9cbe3f9f55b7614e17b7c5f0694b326ad3993d0cde59aca8dc8fa
+ source = tldr++-1.0.0-alpha.tar.gz::https://github.com/isacikgoz/tldr/archive/refs/tags/v1.0.0-alpha.tar.gz
+ sha256sums = d40e1c602d84acc67cdee3b9bed001fb8ec198c7049c1d05eb071ab05af66c19
pkgname = tldr++
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4dab8d6386e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 1102d7b8e0f..192c1ad823a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,39 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: iboyperson <tjquillan at gmail dot com>
pkgname=tldr++
-pkgver=0.6.1
-pkgrel=8
+_pkgver=1.0.0-alpha
+pkgver=${_pkgver//-/.}
+pkgrel=1
pkgdesc="Community driven man pages improved with smart user interaction"
arch=('i686' 'x86_64' 'arm' 'aarch64')
url="https://isacikgoz.me/tldr"
license=('MIT')
-makedepends=('go' 'dep' 'git')
+makedepends=('go')
provides=("${pkgname%++}")
-conflicts=("${pkgname%++}" 'nodejs-tldr' 'tldr-bash-git' 'tldr-cpp-client' 'tldr-python-client')
-source=("$pkgname-$pkgver.tar.gz"::"https://github.com/isacikgoz/tldr/archive/v$pkgver.tar.gz")
-sha256sums=('e377942c6dd9cbe3f9f55b7614e17b7c5f0694b326ad3993d0cde59aca8dc8fa')
+conflicts=("${pkgname%++}" 'nodejs-tldr' 'tldr-bash-git' 'tealdeer' 'tldr-cpp-client' 'tldr-python-client')
+source=("$pkgname-$_pkgver.tar.gz"::"https://github.com/isacikgoz/tldr/archive/refs/tags/v$_pkgver.tar.gz")
+sha256sums=('d40e1c602d84acc67cdee3b9bed001fb8ec198c7049c1d05eb071ab05af66c19')
prepare() {
- mkdir -p gopath/src/github.com/isacikgoz
- ln -rTsf "${pkgname%++}-$pkgver" "gopath/src/github.com/isacikgoz/${pkgname%++}"
-
export GOPATH="$srcdir/gopath"
go clean -modcache
-
- cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
- dep init -v
- dep ensure -v
}
build() {
- export GOPATH="$srcdir"/gopath
- cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
-
- go build \
- -trimpath \
- -buildmode=pie \
- -ldflags "-extldflags \"${LDFLAGS}\"" \
- -v -o $pkgname .
+ cd "${pkgname%++}-$_pkgver"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ go build -v ./cmd/...
# Clean mod cache for makepkg -C
go clean -modcache
}
package() {
- cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
- install -Dm755 "$pkgname" "$pkgdir/usr/bin/${pkgname%++}"
+ cd "${pkgname%++}-$_pkgver"
+ install -Dm755 "${pkgname%++}" -t "$pkgdir/usr/bin"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}