From 95fd0d6f59ee6552307a92dc9cd68f61b88f6fb5 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 10 Jun 2018 14:01:54 +0900 Subject: first --- .SRCINFO | 19 +++++++++++++++++++ .gitignore | 3 +++ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..66a46eb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = xq + pkgdesc = xml to json convert parser + pkgver = 0.1 + pkgrel = 1 + url = https://github.com/syui/xq + arch = x86_64 + arch = i686 + license = MIT + noextract = https://github.com/syui/xq/releases/download/0.1/linux_386_xq + noextract = https://github.com/syui/xq/releases/download/0.1/linux_amd64_xq + options = !strip + options = !emptydirs + source = https://github.com/syui/xq/releases/download/0.1/linux_386_xq + source = https://github.com/syui/xq/releases/download/0.1/linux_amd64_xq + sha1sums = ec49fc225d79473b11790e79d7c1c57b3b829cff + sha1sums = 883a2ec0dea0d449b34664367912af289d0b5943 + +pkgname = xq + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0d838f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +linux_amd64_xq +linux_386_xq +xq diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3359554 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: syui +pkgname=xq +pkgver=0.1 +pkgrel=1 +pkgdesc="xml to json convert parser" +arch=('x86_64' 'i686') +url="https://github.com/syui/xq" +options=('!strip' '!emptydirs') +license=('MIT') +source=("$url/releases/download/$pkgver/linux_386_$pkgname" + "$url/releases/download/$pkgver/linux_amd64_$pkgname") +noextract=(${source[@]%%::*}) +sha1sums=('ec49fc225d79473b11790e79d7c1c57b3b829cff' + '883a2ec0dea0d449b34664367912af289d0b5943') + +package() { + mkdir -p ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" + + if [ "`uname -m`" = "x86_64" ];then + mv ../linux_amd64_$pkgname $pkgname + chmod +x $pkgname + fi + + if [ "`uname -m`" = "i684" ];then + mv ../linux_386_$pkgname $pkgname + chmod +x $pkgname + fi + + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + #sudo install -Dm755 "$pkgdir/usr/bin/$pkgname" /usr/bin +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2 From b969e997f689bb909bbb48ee8266ca84055c9210 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 19 Dec 2019 13:48:46 +0900 Subject: update 0.2 --- .SRCINFO | 14 +++++++------- PKGBUILD | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 66a46eb..64e829d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,19 +1,19 @@ pkgbase = xq pkgdesc = xml to json convert parser - pkgver = 0.1 + pkgver = 0.2 pkgrel = 1 url = https://github.com/syui/xq arch = x86_64 arch = i686 license = MIT - noextract = https://github.com/syui/xq/releases/download/0.1/linux_386_xq - noextract = https://github.com/syui/xq/releases/download/0.1/linux_amd64_xq + noextract = https://github.com/syui/xq/releases/download/0.2/linux_386_xq + noextract = https://github.com/syui/xq/releases/download/0.2/linux_amd64_xq options = !strip options = !emptydirs - source = https://github.com/syui/xq/releases/download/0.1/linux_386_xq - source = https://github.com/syui/xq/releases/download/0.1/linux_amd64_xq - sha1sums = ec49fc225d79473b11790e79d7c1c57b3b829cff - sha1sums = 883a2ec0dea0d449b34664367912af289d0b5943 + source = https://github.com/syui/xq/releases/download/0.2/linux_386_xq + source = https://github.com/syui/xq/releases/download/0.2/linux_amd64_xq + sha1sums = 6baa574caa2a4fae264acd62fe03ec56b0182d36 + sha1sums = 5ad426d3e62369221023f86967de7f64da7b1d5f pkgname = xq diff --git a/PKGBUILD b/PKGBUILD index 3359554..9a9c9bb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: syui pkgname=xq -pkgver=0.1 +pkgver=0.2 pkgrel=1 pkgdesc="xml to json convert parser" arch=('x86_64' 'i686') -- cgit v1.2.3-70-g09d2 From 54a1a491c007639e6c603bc3e4e8f1524a6edeb0 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 22 Dec 2019 15:14:55 +0900 Subject: up 0.2.1 --- .SRCINFO | 13 ++++++------- PKGBUILD | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 64e829d..8a120db 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -6,14 +6,13 @@ pkgbase = xq arch = x86_64 arch = i686 license = MIT - noextract = https://github.com/syui/xq/releases/download/0.2/linux_386_xq - noextract = https://github.com/syui/xq/releases/download/0.2/linux_amd64_xq + noextract = https://github.com/syui/xq/releases/download/0.2.1/linux_386_xq + noextract = https://github.com/syui/xq/releases/download/0.2.1/linux_amd64_xq options = !strip options = !emptydirs - source = https://github.com/syui/xq/releases/download/0.2/linux_386_xq - source = https://github.com/syui/xq/releases/download/0.2/linux_amd64_xq - sha1sums = 6baa574caa2a4fae264acd62fe03ec56b0182d36 - sha1sums = 5ad426d3e62369221023f86967de7f64da7b1d5f + source = https://github.com/syui/xq/releases/download/0.2.1/linux_386_xq + source = https://github.com/syui/xq/releases/download/0.2.1/linux_amd64_xq + sha1sums = 7a10595e9d60e4b70da980a634906cb617680610 + sha1sums = c2d2825b643fe05f10d3f29d4688025acefc797d pkgname = xq - diff --git a/PKGBUILD b/PKGBUILD index 9a9c9bb..0dd19de 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: syui pkgname=xq -pkgver=0.2 +pkgver=0.2.1 pkgrel=1 pkgdesc="xml to json convert parser" arch=('x86_64' 'i686') -- cgit v1.2.3-70-g09d2 From 10274c3da0613207db57b604561614011b702c48 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 24 Dec 2019 13:26:12 +0900 Subject: update 0.3 --- .SRCINFO | 14 +++++++------- PKGBUILD | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 8a120db..60b5b18 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,18 @@ pkgbase = xq pkgdesc = xml to json convert parser - pkgver = 0.2 + pkgver = 0.3 pkgrel = 1 url = https://github.com/syui/xq arch = x86_64 arch = i686 license = MIT - noextract = https://github.com/syui/xq/releases/download/0.2.1/linux_386_xq - noextract = https://github.com/syui/xq/releases/download/0.2.1/linux_amd64_xq + noextract = https://github.com/syui/xq/releases/download/0.3.0/linux_386_xq + noextract = https://github.com/syui/xq/releases/download/0.3.0/linux_amd64_xq options = !strip options = !emptydirs - source = https://github.com/syui/xq/releases/download/0.2.1/linux_386_xq - source = https://github.com/syui/xq/releases/download/0.2.1/linux_amd64_xq - sha1sums = 7a10595e9d60e4b70da980a634906cb617680610 - sha1sums = c2d2825b643fe05f10d3f29d4688025acefc797d + source = https://github.com/syui/xq/releases/download/0.3.0/linux_386_xq + source = https://github.com/syui/xq/releases/download/0.3.0/linux_amd64_xq + sha1sums = 5cf3d5dc13bde112c9c771ef93f3916bdebfc726 + sha1sums = 9a2750a783c2a2b3b38e8920bc5beafc8d2a4299 pkgname = xq diff --git a/PKGBUILD b/PKGBUILD index 0dd19de..db7f5f3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: syui pkgname=xq -pkgver=0.2.1 +pkgver=0.3.0 pkgrel=1 pkgdesc="xml to json convert parser" arch=('x86_64' 'i686') @@ -10,8 +10,8 @@ license=('MIT') source=("$url/releases/download/$pkgver/linux_386_$pkgname" "$url/releases/download/$pkgver/linux_amd64_$pkgname") noextract=(${source[@]%%::*}) -sha1sums=('ec49fc225d79473b11790e79d7c1c57b3b829cff' - '883a2ec0dea0d449b34664367912af289d0b5943') +sha1sums=('5cf3d5dc13bde112c9c771ef93f3916bdebfc726' + '9a2750a783c2a2b3b38e8920bc5beafc8d2a4299') package() { mkdir -p ${srcdir}/${pkgname}-${pkgver} -- cgit v1.2.3-70-g09d2 From 29a9db381002b5b703157c50f93ff87b88091001 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 24 Dec 2019 14:16:31 +0900 Subject: update 0.3.3 --- .SRCINFO | 14 +++++++------- PKGBUILD | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 60b5b18..548ff70 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,18 @@ pkgbase = xq pkgdesc = xml to json convert parser - pkgver = 0.3 + pkgver = 0.3.3 pkgrel = 1 url = https://github.com/syui/xq arch = x86_64 arch = i686 license = MIT - noextract = https://github.com/syui/xq/releases/download/0.3.0/linux_386_xq - noextract = https://github.com/syui/xq/releases/download/0.3.0/linux_amd64_xq + noextract = https://github.com/syui/xq/releases/download/0.3.3/linux_386_xq + noextract = https://github.com/syui/xq/releases/download/0.3.3/linux_amd64_xq options = !strip options = !emptydirs - source = https://github.com/syui/xq/releases/download/0.3.0/linux_386_xq - source = https://github.com/syui/xq/releases/download/0.3.0/linux_amd64_xq - sha1sums = 5cf3d5dc13bde112c9c771ef93f3916bdebfc726 - sha1sums = 9a2750a783c2a2b3b38e8920bc5beafc8d2a4299 + source = https://github.com/syui/xq/releases/download/0.3.3/linux_386_xq + source = https://github.com/syui/xq/releases/download/0.3.3/linux_amd64_xq + sha1sums = c47fa451d0f9f24a174f152a927d095b0cd3dde6 + sha1sums = a92b5523373e8d2f0ca8da1974f7be8eb0fb75e1 pkgname = xq diff --git a/PKGBUILD b/PKGBUILD index db7f5f3..8fb7e2e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: syui pkgname=xq -pkgver=0.3.0 +pkgver=0.3.3 pkgrel=1 pkgdesc="xml to json convert parser" arch=('x86_64' 'i686') @@ -10,8 +10,8 @@ license=('MIT') source=("$url/releases/download/$pkgver/linux_386_$pkgname" "$url/releases/download/$pkgver/linux_amd64_$pkgname") noextract=(${source[@]%%::*}) -sha1sums=('5cf3d5dc13bde112c9c771ef93f3916bdebfc726' - '9a2750a783c2a2b3b38e8920bc5beafc8d2a4299') +sha1sums=('c47fa451d0f9f24a174f152a927d095b0cd3dde6' + 'a92b5523373e8d2f0ca8da1974f7be8eb0fb75e1') package() { mkdir -p ${srcdir}/${pkgname}-${pkgver} -- cgit v1.2.3-70-g09d2 From fb4b46ffaac0db52ee9d13592a4426cacc620a84 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 29 Feb 2020 09:08:23 +0900 Subject: fix pkgbuild --- PKGBUILD | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 8fb7e2e..ba0cf85 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,34 +1,24 @@ # Maintainer: syui pkgname=xq -pkgver=0.3.3 +pkgver=0.3.4 pkgrel=1 pkgdesc="xml to json convert parser" arch=('x86_64' 'i686') url="https://github.com/syui/xq" -options=('!strip' '!emptydirs') +makedepends=('go-pie') license=('MIT') -source=("$url/releases/download/$pkgver/linux_386_$pkgname" - "$url/releases/download/$pkgver/linux_amd64_$pkgname") -noextract=(${source[@]%%::*}) -sha1sums=('c47fa451d0f9f24a174f152a927d095b0cd3dde6' - 'a92b5523373e8d2f0ca8da1974f7be8eb0fb75e1') - +source=("${pkgname}-${pkgver}::${url}/archive/$pkgver.tar.gz") +sha256sums=('6dc017cf06a598f8bc781a508ff0e63bbc5d7828026b8e7733dc387aec280ceb') +build(){ + cd "${pkgname}-${pkgver}" + go build \ + -trimpath \ + -ldflags "-extldflags ${LDFLAGS}" \ + -o $pkgname . +} package() { - mkdir -p ${srcdir}/${pkgname}-${pkgver} - cd "${srcdir}/${pkgname}-${pkgver}" - - if [ "`uname -m`" = "x86_64" ];then - mv ../linux_amd64_$pkgname $pkgname - chmod +x $pkgname - fi - - if [ "`uname -m`" = "i684" ];then - mv ../linux_386_$pkgname $pkgname - chmod +x $pkgname - fi - + cd "${pkgname}-${pkgver}" install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" - #sudo install -Dm755 "$pkgdir/usr/bin/$pkgname" /usr/bin } # vim:set ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2 From 807d7c80d6c090a588f4506c86a47f7f64ccee3f Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 5 Mar 2020 10:46:51 +0900 Subject: update 0.3.4 --- .SRCINFO | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 548ff70..a92e588 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,18 +1,16 @@ +# Generated by mksrcinfo v8 +# Thu Mar 5 01:45:39 UTC 2020 pkgbase = xq pkgdesc = xml to json convert parser - pkgver = 0.3.3 + pkgver = 0.3.4 pkgrel = 1 url = https://github.com/syui/xq arch = x86_64 arch = i686 license = MIT - noextract = https://github.com/syui/xq/releases/download/0.3.3/linux_386_xq - noextract = https://github.com/syui/xq/releases/download/0.3.3/linux_amd64_xq - options = !strip - options = !emptydirs - source = https://github.com/syui/xq/releases/download/0.3.3/linux_386_xq - source = https://github.com/syui/xq/releases/download/0.3.3/linux_amd64_xq - sha1sums = c47fa451d0f9f24a174f152a927d095b0cd3dde6 - sha1sums = a92b5523373e8d2f0ca8da1974f7be8eb0fb75e1 + makedepends = go-pie + source = xq-0.3.4::https://github.com/syui/xq/archive/0.3.4.tar.gz + sha256sums = 6dc017cf06a598f8bc781a508ff0e63bbc5d7828026b8e7733dc387aec280ceb pkgname = xq + -- cgit v1.2.3-70-g09d2 From ddd332e6920faa66166cb0ab0e222481452e01bc Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sun, 13 Nov 2022 21:06:25 +1300 Subject: addpkg: xq 1.0.0-1 --- .SRCINFO | 21 +++++----- PKGBUILD | 101 ++++++++++++++++++++++++++++++++++++++++--------- manpage-template.patch | 9 +++++ 3 files changed, 104 insertions(+), 27 deletions(-) create mode 100644 manpage-template.patch diff --git a/.SRCINFO b/.SRCINFO index a92e588..d33f894 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,16 +1,17 @@ -# Generated by mksrcinfo v8 -# Thu Mar 5 01:45:39 UTC 2020 pkgbase = xq - pkgdesc = xml to json convert parser - pkgver = 0.3.4 + pkgdesc = Command-line XML and HTML beautifier and content extractor + pkgver = 1.0.0 pkgrel = 1 - url = https://github.com/syui/xq + url = https://github.com/sibprogrammer/xq arch = x86_64 - arch = i686 license = MIT - makedepends = go-pie - source = xq-0.3.4::https://github.com/syui/xq/archive/0.3.4.tar.gz - sha256sums = 6dc017cf06a598f8bc781a508ff0e63bbc5d7828026b8e7733dc387aec280ceb + makedepends = git + makedepends = go + depends = glibc + options = !lto + source = xq::git+https://github.com/sibprogrammer/xq#commit=21fca280a144fbf34ab1a58efa39acb495a46764 + source = manpage-template.patch + b2sums = SKIP + b2sums = 4673d2c90996be27f5889f97541f1c4bd0c89c48d5b0573846d7e7a791bba3eaa66ca9774a054911d0014ee33e48bb19084fa3340a12756b2369928c4b951eb3 pkgname = xq - diff --git a/PKGBUILD b/PKGBUILD index ba0cf85..d7114b4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,24 +1,91 @@ -# Maintainer: syui +# Maintainer: George Rawlinson + pkgname=xq -pkgver=0.3.4 +pkgver=1.0.0 pkgrel=1 -pkgdesc="xml to json convert parser" -arch=('x86_64' 'i686') -url="https://github.com/syui/xq" -makedepends=('go-pie') +pkgdesc='Command-line XML and HTML beautifier and content extractor' +arch=('x86_64') +url='https://github.com/sibprogrammer/xq' license=('MIT') -source=("${pkgname}-${pkgver}::${url}/archive/$pkgver.tar.gz") -sha256sums=('6dc017cf06a598f8bc781a508ff0e63bbc5d7828026b8e7733dc387aec280ceb') -build(){ - cd "${pkgname}-${pkgver}" - go build \ +depends=('glibc') +makedepends=('git' 'go') +options=('!lto') +_commit='21fca280a144fbf34ab1a58efa39acb495a46764' +source=( + "$pkgname::git+$url#commit=$_commit" + 'manpage-template.patch' +) +b2sums=('SKIP' + '4673d2c90996be27f5889f97541f1c4bd0c89c48d5b0573846d7e7a791bba3eaa66ca9774a054911d0014ee33e48bb19084fa3340a12756b2369928c4b951eb3') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # create directory for build output + mkdir build + + # download dependencies + go mod download + + # turn man page into a template + patch -p1 -i "$srcdir/manpage-template.patch" +} + +build() { + cd "$pkgname" + + # set Go flags + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + + # commit date for binary & man page + local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d) + + go build -v \ -trimpath \ - -ldflags "-extldflags ${LDFLAGS}" \ - -o $pkgname . + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags ${LDFLAGS} \ + -X main.commit=$_commit \ + -X main.date=$_commit_date \ + -X main.version=$pkgver" \ + -o build \ + . + + # template-ify man page + sed \ + -e "s/@DATE@/$_commit_date/" \ + -e "s/@VERSION@/$pkgver/" \ + -i docs/xq.man } -package() { - cd "${pkgname}-${pkgver}" - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + +check() { + cd "$pkgname" + + go test -v ./... } -# vim:set ts=2 sw=2 et: +package() { + cd "$pkgname" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" build/xq + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + cp -vr assets "$pkgdir/usr/share/doc/$pkgname" + + # man + install -vDm644 docs/xq.man "$pkgdir/usr/share/man/man1/$pkgname.1" + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} diff --git a/manpage-template.patch b/manpage-template.patch new file mode 100644 index 0000000..6dba9af --- /dev/null +++ b/manpage-template.patch @@ -0,0 +1,9 @@ +--- a/docs/xq.man ++++ b/docs/xq.man +@@ -1,5 +1,5 @@ + .\" Manpage for xq utility +-.TH XQ 1 "06 Nov 2022" "0.0.8" "xq man page" ++.TH XQ 1 "@DATE@" "@VERSION@" "xq man page" + .SH NAME + xq - command-line XML and HTML beautifier and content extractor + .SH SYNOPSIS -- cgit v1.2.3-70-g09d2 From b7bfd5ffb19577e731d11223b52ce6c7c52ae0f4 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Mon, 28 Nov 2022 20:28:59 +1300 Subject: upgpkg: xq 1.1.0-1 --- .SRCINFO | 7 ++++--- PKGBUILD | 7 ++++--- manpage-template.patch | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index d33f894..99fda57 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.0.0 + pkgver = 1.1.0 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -8,10 +8,11 @@ pkgbase = xq makedepends = git makedepends = go depends = glibc + conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=21fca280a144fbf34ab1a58efa39acb495a46764 + source = xq::git+https://github.com/sibprogrammer/xq#commit=0a9c1d7b705b5926328576b4a3a3ec2e3430e59c source = manpage-template.patch b2sums = SKIP - b2sums = 4673d2c90996be27f5889f97541f1c4bd0c89c48d5b0573846d7e7a791bba3eaa66ca9774a054911d0014ee33e48bb19084fa3340a12756b2369928c4b951eb3 + b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 pkgname = xq diff --git a/PKGBUILD b/PKGBUILD index d7114b4..e875c63 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.0.0 +pkgver=1.1.0 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -9,14 +9,15 @@ url='https://github.com/sibprogrammer/xq' license=('MIT') depends=('glibc') makedepends=('git' 'go') +conflicts=('yq') options=('!lto') -_commit='21fca280a144fbf34ab1a58efa39acb495a46764' +_commit='0a9c1d7b705b5926328576b4a3a3ec2e3430e59c' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' ) b2sums=('SKIP' - '4673d2c90996be27f5889f97541f1c4bd0c89c48d5b0573846d7e7a791bba3eaa66ca9774a054911d0014ee33e48bb19084fa3340a12756b2369928c4b951eb3') + 'f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843') pkgver() { cd "$pkgname" diff --git a/manpage-template.patch b/manpage-template.patch index 6dba9af..32b64cf 100644 --- a/manpage-template.patch +++ b/manpage-template.patch @@ -2,7 +2,7 @@ +++ b/docs/xq.man @@ -1,5 +1,5 @@ .\" Manpage for xq utility --.TH XQ 1 "06 Nov 2022" "0.0.8" "xq man page" +-.TH XQ 1 "06 Nov 2022" "" "xq man page" +.TH XQ 1 "@DATE@" "@VERSION@" "xq man page" .SH NAME xq - command-line XML and HTML beautifier and content extractor -- cgit v1.2.3-70-g09d2 From 5e7585237556903f8d1148877be29b1972088e3b Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 20 Dec 2022 19:16:25 +1300 Subject: upgpkg: xq 1.1.1-1 --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 99fda57..e196678 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.1.0 + pkgver = 1.1.1 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -10,7 +10,7 @@ pkgbase = xq depends = glibc conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=0a9c1d7b705b5926328576b4a3a3ec2e3430e59c + source = xq::git+https://github.com/sibprogrammer/xq#commit=f0c2fb2fb0dcc90e9422a219ffdf437113777388 source = manpage-template.patch b2sums = SKIP b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 diff --git a/PKGBUILD b/PKGBUILD index e875c63..8c659af 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.1.0 +pkgver=1.1.1 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='0a9c1d7b705b5926328576b4a3a3ec2e3430e59c' +_commit='f0c2fb2fb0dcc90e9422a219ffdf437113777388' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' -- cgit v1.2.3-70-g09d2 From 7b851a3adb79143f9de52ad4bac909e23d04f431 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Mon, 16 Jan 2023 19:46:07 +1300 Subject: upgpkg: xq 1.1.2-1; enable debug package --- .SRCINFO | 4 ++-- PKGBUILD | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index e196678..6f15870 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.1.1 + pkgver = 1.1.2 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -10,7 +10,7 @@ pkgbase = xq depends = glibc conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=f0c2fb2fb0dcc90e9422a219ffdf437113777388 + source = xq::git+https://github.com/sibprogrammer/xq#commit=7c585a2e6ccd7e6e3adc63e4524023389135c938 source = manpage-template.patch b2sums = SKIP b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 diff --git a/PKGBUILD b/PKGBUILD index 8c659af..69eb92e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.1.1 +pkgver=1.1.2 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='f0c2fb2fb0dcc90e9422a219ffdf437113777388' +_commit='7c585a2e6ccd7e6e3adc63e4524023389135c938' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' @@ -45,16 +45,18 @@ build() { export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" + export GOPATH="${srcdir}" # commit date for binary & man page local _commit_date=$(git show --no-patch --format=%cd --date=format:%Y-%m-%d) go build -v \ - -trimpath \ -buildmode=pie \ -mod=readonly \ -modcacherw \ - -ldflags "-linkmode external -extldflags ${LDFLAGS} \ + -ldflags "-compressdwarf=false \ + -linkmode external \ + -extldflags ${LDFLAGS} \ -X main.commit=$_commit \ -X main.date=$_commit_date \ -X main.version=$pkgver" \ -- cgit v1.2.3-70-g09d2 From 16fc57f58374fd88f0e4c6ff10a92aad2b098299 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Wed, 25 Jan 2023 13:14:24 +1300 Subject: upgpkg: xq 1.1.3-1 --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 6f15870..9297470 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.1.2 + pkgver = 1.1.3 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -10,7 +10,7 @@ pkgbase = xq depends = glibc conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=7c585a2e6ccd7e6e3adc63e4524023389135c938 + source = xq::git+https://github.com/sibprogrammer/xq#commit=d8708ffb0f5bf0ad3da356733284ade85f758266 source = manpage-template.patch b2sums = SKIP b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 diff --git a/PKGBUILD b/PKGBUILD index 69eb92e..9c665e4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.1.2 +pkgver=1.1.3 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='7c585a2e6ccd7e6e3adc63e4524023389135c938' +_commit='d8708ffb0f5bf0ad3da356733284ade85f758266' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' -- cgit v1.2.3-70-g09d2 From 50b3626b836b2d0de1ad16a7a6847ac8e68516e7 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sat, 15 Jul 2023 11:09:09 +1200 Subject: upgpkg: xq 1.2.1-1 --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 9297470..c2b151d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.1.3 + pkgver = 1.2.1 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -10,7 +10,7 @@ pkgbase = xq depends = glibc conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=d8708ffb0f5bf0ad3da356733284ade85f758266 + source = xq::git+https://github.com/sibprogrammer/xq#commit=8ed07bdd6390e64f126abb832bcab0da317f7f34 source = manpage-template.patch b2sums = SKIP b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 diff --git a/PKGBUILD b/PKGBUILD index 9c665e4..0454cbd 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.1.3 +pkgver=1.2.1 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='d8708ffb0f5bf0ad3da356733284ade85f758266' +_commit='8ed07bdd6390e64f126abb832bcab0da317f7f34' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' -- cgit v1.2.3-70-g09d2 From 9e445a2a89089f7ad9705241a5158a1320173869 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Wed, 10 Jan 2024 09:20:36 +1300 Subject: 1.2.3-1 --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index c2b151d..c759b26 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = xq pkgdesc = Command-line XML and HTML beautifier and content extractor - pkgver = 1.2.1 + pkgver = 1.2.3 pkgrel = 1 url = https://github.com/sibprogrammer/xq arch = x86_64 @@ -10,7 +10,7 @@ pkgbase = xq depends = glibc conflicts = yq options = !lto - source = xq::git+https://github.com/sibprogrammer/xq#commit=8ed07bdd6390e64f126abb832bcab0da317f7f34 + source = xq::git+https://github.com/sibprogrammer/xq#commit=2842ec90a2d8143dd90211b083ace7325e6a3a8f source = manpage-template.patch b2sums = SKIP b2sums = f2448e22798e018d6962016dc800ff96ae9c23b776742348a7036d613efa8c37e5c8c7a539804f2daebc4c152495cc1cbbcb2635fcf223e958596333cab1b843 diff --git a/PKGBUILD b/PKGBUILD index 0454cbd..3d7c110 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: George Rawlinson pkgname=xq -pkgver=1.2.1 +pkgver=1.2.3 pkgrel=1 pkgdesc='Command-line XML and HTML beautifier and content extractor' arch=('x86_64') @@ -11,7 +11,7 @@ depends=('glibc') makedepends=('git' 'go') conflicts=('yq') options=('!lto') -_commit='8ed07bdd6390e64f126abb832bcab0da317f7f34' +_commit='2842ec90a2d8143dd90211b083ace7325e6a3a8f' source=( "$pkgname::git+$url#commit=$_commit" 'manpage-template.patch' -- cgit v1.2.3-70-g09d2