archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / lib32-libsodium / trunk / PKGBUILD
blobb91aeac332addaa2ad986697e50822949cbec842
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: oi_wtf <brainpower@mailbox.org>
3 # Contributor: Felix Yan <felixonmars@archlinux.org>
4 # Contributor: namelessjon <jonathan.stott@gmail.com>
5 # Contributor: Alessio Sergi <asergi@archlinux.us>
7 pkgname=lib32-libsodium
8 pkgver=1.0.18
9 pkgrel=2
10 pkgdesc='A modern, portable, easy to use crypto library'
11 arch=(x86_64)
12 url='https://github.com/jedisct1/libsodium'
13 license=(custom:ISC)
14 depends=(
15   lib32-glibc
16   libsodium
18 makedepends=(git)
19 source=(git+https://github.com/jedisct1/libsodium.git#tag=${pkgver})
20 sha256sums=(SKIP)
22 prepare() {
23   cd libsodium
25   ./autogen.sh
28 build() {
29   cd libsodium
31   export CC='gcc -m32'
32   export PKG_CONFIG_LIBDIR=/usr/lib32/pkgconfig
34   ./configure \
35     --prefix=/usr \
36     --libdir=/usr/lib32
37   make
40 package() {
41   cd libsodium
43   make DESTDIR="${pkgdir}" install
44   rm -rf "${pkgdir}"/{etc,usr/{bin,lib,include,share}}
46   install -dm 755 "${pkgdir}"/usr/share/licenses
47   ln -s libsodium "${pkgdir}"/usr/share/licenses/lib32-libsodium
50 # vim:set ts=2 sw=2 et: