[arch-commits] Commit in miniflux/trunk (PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Dec 21 22:57:28 UTC 2021


    Date: Tuesday, December 21, 2021 @ 22:57:28
  Author: grawlinson
Revision: 1082671

upgpkg: miniflux 2.0.34-2

Switch source from tarball to git & pinned commit. This ensures exact
commit is shown in miniflux binary.

Modified:
  miniflux/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-21 22:35:59 UTC (rev 1082670)
+++ PKGBUILD	2021-12-21 22:57:28 UTC (rev 1082671)
@@ -5,7 +5,7 @@
 
 pkgname=miniflux
 pkgver=2.0.34
-pkgrel=1
+pkgrel=2
 pkgdesc="Minimalist and opinionated feed reader"
 arch=('x86_64')
 url="https://miniflux.app"
@@ -16,17 +16,23 @@
 )
 makedepends=('go' 'git')
 backup=('etc/miniflux.conf')
+_commit='686dd92cb9e486c41f407e93d2e10f6b4609f778'
 source=(
-  "$pkgname-$pkgver.tar.gz::https://github.com/miniflux/v2/archive/$pkgver.tar.gz"
+  "$pkgname::git+https://github.com/miniflux/v2.git#commit=$_commit"
   'sysusers.conf'
 )
-sha512sums=('516d2b8fd322cfb0d516b28cda21950981edbc06093d1acde9afc9d7136dda9e2df6d663cd97db6bf77dbbb4ffb9eb23a53d4578cbae3f9098efcef8583c98f6'
+sha512sums=('SKIP'
             'eb026d1eb085f0638161a6a75af5e870c7ba4755012bf7f895de5c1bdd9fbdcb44a8aacbb71c482ca101c214f12f65906ddbcbb7044fad051490f44276aba8e5')
-b2sums=('2629137a9b091eba72625af8ff4f5f7375226ec5ff3e23c9efbf3a00d31598ba99fc1153e2b8cdd58b6f1c87f2ced59da7549b8e13eefcc821d26dd77a669d3c'
+b2sums=('SKIP'
         '71a1cba0e015c6b33897e3492dd014efbfac240d3c6f007f86ff7bade830ce0f2809d4d0ad1d8ca1189627e2961dddc7ff6682cd445587f5145bee0eab8a7bf6')
 
+pkgver() {
+  cd "$pkgname"
+  git describe --tags | sed 's/^[vV]//;s/-/+/g'
+}
+
 prepare() {
-  cd "v2-$pkgver"
+  cd "$pkgname"
 
   # create directory for build output
   mkdir -p build
@@ -36,7 +42,7 @@
 }
 
 build() {
-  cd "v2-$pkgver"
+  cd "$pkgname"
 
   # set Go flags
   export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -53,7 +59,7 @@
     -modcacherw \
     -ldflags "-linkmode external -extldflags ${LDFLAGS} \
     -X miniflux.app/version.Version=${pkgver} \
-    -X miniflux.app/version.Commit=tarball \
+    -X miniflux.app/version.Commit=${_commit} \
     -X miniflux.app/version.BuildDate=${BUILD_DATE}" \
     -o build \
     .
@@ -60,12 +66,12 @@
 }
 
 check() {
-  cd "v2-$pkgver"
+  cd "$pkgname"
   go test -v -race -count=1 ./...
 }
 
 package() {
-  cd "v2-$pkgver"
+  cd "$pkgname"
 
   # binary
   install -vDm755 "build/$pkgname.app" "$pkgdir/usr/bin/$pkgname"



More information about the arch-commits mailing list