summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2765e2b2abdc3897fddf1ae3465b5e35d1d8314 (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
pkgname=utility-git
pkgver=1.17.0
pkgrel=1
arch=('any')
pkgdesc='General purpose C utility library'
url='https://github.com/jmdaemon/utility'
license=('AGPL3')
depends=('pcre')
optdepends=()
makedepends=('make')
source=("$pkgname::git+https://github.com/jmdaemon/utility")
provides=(utility)
conflicts=(utility)
sha512sums=("SKIP")

build() {
    cd "$pkgname"
    git submodule init
    git submodule update
    export DESTDIR="$pkgdir"
    export PREFIX="/usr"
    make release lib
}

package-lib() {
    LIB_DIR="$pkgdir"/usr/lib
    INC_DIR="$pkgdir"/usr/include
    mkdir -p $LIB_DIR $INC_DIR
    install build/make/release/lib/libutility.so $LIB_DIR/libutility.so
    install include/utility.h $INC_DIR/utility.h
}

package() {
    cd "$pkgname"
    package-lib
}