-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
41 lines (36 loc) · 1.26 KB
/
PKGBUILD
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: Florian Pritz <[email protected]>
# $Id: PKGBUILD 136290 2015-07-02 17:31:50Z bluewind $
# Contributor: Angel Velasquez <[email protected]>
# Contributor: Sergej Pupykin <[email protected]>
# Contributor: Andrea Scarpino <[email protected]>
# Contributor: ice-man <[email protected]>
# x32 Maintainer: Fantix King <fantix.king at gmail.com>
_pkgbasename=libssh2
pkgname=libx32-$_pkgbasename
pkgver=1.6.0
pkgrel=1.1
pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts (x32 ABI)"
url="http://www.libssh2.org/"
arch=('x86_64')
license=('BSD')
depends=('libx32-openssl' $_pkgbasename)
provides=('libssh2.so')
makedepends=('libx32-zlib' "gcc-multilib-x32")
options=('!libtool')
source=("http://www.libssh2.org/download/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('00aabd6e714a5f42a4fb82ace20db1dd')
build() {
export CC="gcc -mx32"
export CXX="g++ -mx32"
export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
cd ${srcdir}/${_pkgbasename}-${pkgver}
./configure --prefix=/usr --libdir=/usr/libx32
make
}
package() {
cd ${srcdir}/${_pkgbasename}-${pkgver}
make DESTDIR=${pkgdir} install
rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}