blob: fed236b725e817d247fbdb1228b956d740c6ae52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>
_pkgbasename=libsecret
pkgname=lib32-$_pkgbasename
pkgver=0.20.1
pkgrel=1
pkgdesc="Library for storing and retrieving passwords and other secrets (32-bit)"
url="https://wiki.gnome.org/Projects/Libsecret"
arch=('x86_64')
license=('LGPL')
depends=('lib32-glib2' 'lib32-libgcrypt' "${_pkgbasename}")
makedepends=('gcc-multilib' 'intltool' 'gobject-introspection' 'vala' 'git' 'gtk-doc' 'meson' 'valgrind')
optdepends=('org.freedesktop.secrets: secret storage backend')
_commit=e4428dd29fb41672a2dff330a600ed7af2dc74de # tags/0.20.1^0
source=("git+https://gitlab.gnome.org/GNOME/libsecret.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgbasename}"
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd "${srcdir}/${_pkgbasename}"
}
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export LDFLAGS+=" -m32"
arch-meson "${srcdir}/${_pkgbasename}" build -Ddocs=false --libdir=/usr/lib32
ninja -C build
}
package() {
DESTDIR="${pkgdir}" meson install -C build
rm -rf "${pkgdir}"/usr/{bin,include,share}
}
|