Subject: [PATCH] Bump Lagrange to 1.1.0

From: Luna Nieves <[email-masked]>
Date: Mon, 1 Feb 2021 10:55:15 -0400

Changes done to package along with reasoning:

* Change "arch" to just the x86 ones: It's not architecture-independent,
and the instructions to compile on a Raspberry Pi are different enough
that adding ARM archs wouldn't work.
* Change build type to "Release": Building package with 'None' kept
giving warning about binary referencing `$srcdir`.
* Remove 'PREFIX' from package(): It was already set on build(), so it's
redundant.

---
I know there's already a patch in the inbox, but I wanted to clean up
the package a bit.  If the changes are fine but the other patch goes
through, I can send a patch with just those changes.

 lagrange/.SRCINFO | 11 ++++++-----
 lagrange/PKGBUILD | 12 ++++++------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/lagrange/.SRCINFO b/lagrange/.SRCINFO
index bbe62b7..b48e8da 100644
--- a/lagrange/.SRCINFO
+++ b/lagrange/.SRCINFO
@@ -1,9 +1,10 @@
 pkgbase = lagrange
 	pkgdesc = Beautiful Gemini Client
-	pkgver = 1.0.3
-	pkgrel = 2
+	pkgver = 1.1.0
+	pkgrel = 1
 	url = https://git.skyjake.fi/skyjake/lagrange
-	arch = any
+	arch = x86_64
+	arch = i686
 	license = BSD
 	makedepends = cmake
 	depends = openssl
@@ -11,8 +12,8 @@ pkgbase = lagrange
 	depends = libunistring
 	depends = pcre
 	optdepends = mpg123
-	source = https://git.skyjake.fi/skyjake/lagrange/releases/download/v1.0.3/lagrange-1.0.3.tar.gz
-	md5sums = 17fcd774f3b54c8275b1a1c0a3a850bf
+	source = https://git.skyjake.fi/skyjake/lagrange/releases/download/v1.1.0/lagrange-1.1.0.tar.gz
+	md5sums = 090a12a6d9350231c23d53ca3d928ad6
 
 pkgname = lagrange
 
diff --git a/lagrange/PKGBUILD b/lagrange/PKGBUILD
index 65c7d46..6091dcb 100644
--- a/lagrange/PKGBUILD
+++ b/lagrange/PKGBUILD
@@ -1,11 +1,11 @@
 # Maintainer: Roshless <[email-masked]>
 
 pkgname=lagrange
-pkgrel=2
-pkgver=1.0.3
+pkgrel=1
+pkgver=1.1.0
 pkgdesc="Beautiful Gemini Client"
 url="https://git.skyjake.fi/skyjake/lagrange"
-arch=("any")
+arch=('x86_64' 'i686')
 license=("BSD")
 source=(
     "https://git.skyjake.fi/skyjake/$pkgname/releases/download/v$pkgver/lagrange-$pkgver.tar.gz"
@@ -22,7 +22,7 @@ makedepends=("cmake")
 
 build() {
     cmake -B build -S "$pkgname-${pkgver}" \
-        -DCMAKE_BUILD_TYPE='None' \
+        -DCMAKE_BUILD_TYPE='Release' \
         -DCMAKE_INSTALL_PREFIX='/usr' \
         -Wno-dev
     make -C build
@@ -32,7 +32,7 @@ package() {
     install -Dm644 $pkgname-$pkgver/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
     cd build
-    make PREFIX="/usr" DESTDIR="$pkgdir" install
+    make DESTDIR="$pkgdir" install
 }
 
-md5sums=('17fcd774f3b54c8275b1a1c0a3a850bf')
+md5sums=('090a12a6d9350231c23d53ca3d928ad6')
-- 
2.30.0