[arch-commits] Commit in lib32-libsodium/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun Mar 6 15:58:21 UTC 2022
Date: Sunday, March 6, 2022 @ 15:58:21
Author: foutrelis
Revision: 1142643
archrelease: copy trunk to multilib-staging-x86_64
Added:
lib32-libsodium/repos/multilib-staging-x86_64/
lib32-libsodium/repos/multilib-staging-x86_64/PKGBUILD
(from rev 1142641, lib32-libsodium/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: lib32-libsodium/repos/multilib-staging-x86_64/PKGBUILD (from rev 1142641, lib32-libsodium/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD (rev 0)
+++ multilib-staging-x86_64/PKGBUILD 2022-03-06 15:58:21 UTC (rev 1142643)
@@ -0,0 +1,50 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: oi_wtf <brainpower at mailbox.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: namelessjon <jonathan.stott at gmail.com>
+# Contributor: Alessio Sergi <asergi at archlinux.us>
+
+pkgname=lib32-libsodium
+pkgver=1.0.18
+pkgrel=2
+pkgdesc='A modern, portable, easy to use crypto library'
+arch=(x86_64)
+url='https://github.com/jedisct1/libsodium'
+license=(custom:ISC)
+depends=(
+ lib32-glibc
+ libsodium
+)
+makedepends=(git)
+source=(git+https://github.com/jedisct1/libsodium.git#tag=${pkgver})
+sha256sums=(SKIP)
+
+prepare() {
+ cd libsodium
+
+ ./autogen.sh
+}
+
+build() {
+ cd libsodium
+
+ export CC='gcc -m32'
+ export PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd libsodium
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/{etc,usr/{bin,lib,include,share}}
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses
+ ln -s libsodium "${pkgdir}"/usr/share/licenses/lib32-libsodium
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list