summaryrefslogtreecommitdiffstats
path: root/main/libsecret/APKBUILD
blob: a036d55583ce113d88f918d9b5c2ff4db83f36b1 (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
42
43
44
45
46
47
48
49
50
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsecret
pkgver=0.15
pkgrel=0
pkgdesc="Library for storing and retrieving passwords and other secrets"
url="https://live.gnome.org/Libsecret"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="glib-dev"
makedepends="$depends_dev intltool libxslt-dev docbook-xsl libgcrypt-dev
	gobject-introspection-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.gnome.org/sources/libsecret/$pkgver/libsecret-$pkgver.tar.xz"

_builddir="$srcdir"/libsecret-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="51093b922823a7bdb5d7e951a9f2337f  libsecret-0.15.tar.xz"
sha256sums="33e728b843efbe099483376ff5a3469260ee4b6ce035c7730909ac3793cb0fb8  libsecret-0.15.tar.xz"
sha512sums="d89f3b52c5300306b92b222a56c976e5c42f761c2a8691b0dbac9f533853a54f6dd91f9f22f577e336c77e9771dd3cb098963dab086759ead2750f2a8fce5dca  libsecret-0.15.tar.xz"