summaryrefslogtreecommitdiff
path: root/lagrange-nosse41/PKGBUILD
diff options
context:
space:
mode:
authorDeposite Pirate2022-08-25 18:04:28 +0200
committerDeposite Pirate2022-08-25 18:04:28 +0200
commit2f8b3ad7dd69d61d8f3b2ccea32b7265118a1bd8 (patch)
tree529aecd8e5e1cba7cbafa50f639f56786b395e70 /lagrange-nosse41/PKGBUILD
parent142de6573cda0147e51e072536a53d7ace30597f (diff)
Lagrange build that works with CPUs without SSE 4.1
new file: lagrange-nosse41/.SRCINFO new file: lagrange-nosse41/PKGBUILD new file: lagrange-nosse41/lagrange.install
Diffstat (limited to 'lagrange-nosse41/PKGBUILD')
-rw-r--r--lagrange-nosse41/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/lagrange-nosse41/PKGBUILD b/lagrange-nosse41/PKGBUILD
new file mode 100644
index 0000000..52f7f95
--- /dev/null
+++ b/lagrange-nosse41/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
+#
+# Based on PKGBUILD by Roshless <pkg@roshless.com>
+#
+# Upstream: https://git.metalpunks.info/arch-ports
+
+_pkgname=lagrange
+pkgname=$_pkgname-nosse41
+pkgrel=1
+pkgver=1.13.6
+pkgdesc='Beautiful Gemini Client (compiled without SSE)'
+url='https://git.skyjake.fi/skyjake/lagrange'
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
+license=('BSD')
+install="$_pkgname.install"
+source=("https://git.skyjake.fi/gemini/$_pkgname/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz")
+depends=(
+ 'fribidi'
+ 'harfbuzz'
+ 'hicolor-icon-theme'
+ 'libunistring'
+ 'openssl'
+ 'pcre'
+ 'sdl2'
+ 'zlib'
+ 'mpg123'
+)
+makedepends=(
+ 'cmake'
+ 'zip'
+)
+conflicts=("$_pkgname")
+provides=("$_pkgname")
+sha256sums=('7a89e4e950d14cfebd2806de07c49eeeb79368091a68ca439795d0aba9e1aaa7')
+
+build() {
+ cmake -B build -S "${_pkgname}-${pkgver}" \
+ -DCMAKE_BUILD_TYPE='Release' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DENABLE_KERNING=OFF \
+ -DTFDN_ENABLE_WARN_ERROR=OFF \
+ -DTFDN_ENABLE_SSE41=OFF \
+ -Wno-dev
+ make -C build
+}
+
+package() {
+ install -Dm644 "${_pkgname}-${pkgver}/LICENSE.md" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+
+ cd build
+ make DESTDIR="${pkgdir}" install
+}