aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsecret/APKBUILD
blob: 0991217ec0e46d56fe62243e76888fcf87561573 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsecret
pkgver=0.18.8
pkgrel=0
pkgdesc="Library for storing and retrieving passwords and other secrets"
url="https://live.gnome.org/Libsecret"
arch="all"
license="LGPL-2.0-or-later"
makedepends="glib-dev intltool libxslt-dev docbook-xsl libgcrypt-dev
	gobject-introspection-dev vala"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libsecret/${pkgver%.*}/libsecret-$pkgver.tar.xz"
builddir="$srcdir"/libsecret-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

static() {
	pkgdesc="Static files for $pkgname"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
	chmod -x "$subpkgdir"/usr/lib/*.a
} 

sha512sums="9e2ec8d458af6ed078bf3c6d956599f73f2cc7720332c424e9aede1f77f3d969c5122cf7b70899bc07ad96a3a628bf79bc5fffa88274d1ef2bcaaca6719f90d4  libsecret-0.18.8.tar.xz"