summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96350d9becc6cd2b4656a46d0b2582969fa0c826 (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
# Maintainer: Fabian Maurer <dark.shadow4@web.de>

_pkgname=libmd
pkgname=lib32-libmd
pkgver=1.1.0
pkgrel=2
pkgdesc="Message Digest functions from BSD systems"
arch=('x86_64')
url="https://www.hadrons.org/software/libmd/"
license=('BSD')
depends=('glibc' 'libmd')
source=("https://libbsd.freedesktop.org/releases/$_pkgname-$pkgver.tar.xz")
sha256sums=('1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332')

build() {
    export CC='gcc -m32'
    export CXX='g++ -m32'
    export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  
    cd ${_pkgname}-${pkgver}
    ./configure \
        --prefix=/usr \
        --libdir=/usr/lib32
    make
}

package() {
    cd ${_pkgname}-${pkgver}
    make DESTDIR="${pkgdir}" install
    rm -rf "${pkgdir}"/usr/{include,share/man}
}