summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eceebed69885c8bd57dda4b08b74cae11a57475 (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
# Maintainer: Alex Grabowsksi <hurufu@gmail.com>

pkgname=libshm_arena
pkgver=0.0.25
pkgrel=2
pkgdesc='Inter-process shared memory allocator'
arch=(x86_64)
url=https://shm-arena.sourceforge.net/
license=(LGPL)
makedepends=(make gcc automake doxygen)
provides=(libshm_arena.so=6.0.1)
source=(
    "https://downloads.sourceforge.net/project/shm-arena/shm_arena-RC-$pkgver.tar.bz2"
)
md5sums=(
    7d76d5c378a8886662f55b03876a6add
)

prepare() {
    patch -p1 -d "shm_arena-RC-$pkgver" < ../00-fix-doc-install-target.patch
}

build() {
    cd "shm_arena-RC-$pkgver"
    ./bootstrap
    ./configure --prefix=/usr --enable-debug --enable-spew=INFO
    make
}

package() {
    make -C "shm_arena-RC-$pkgver" DESTDIR="$pkgdir/" install
    mkdir -p -- "$pkgdir/usr/share/doc" "$pkgdir/usr/share/examples"
    mv -- "$pkgdir/usr/share/shm_arena/doc" "$pkgdir/usr/share/doc/shm_arena"
    mv -- "$pkgdir/usr/share/doc/shm_arena/examples" "$pkgdir/usr/share/examples/shm_arena"
    ln -sf ../../../examples/shm_arena "$pkgdir/usr/share/doc/shm_arena/html/examples"
}

check() {
    make -C "shm_arena-RC-$pkgver" check
}