summaryrefslogtreecommitdiff
path: root/manualPorts/pacutils/Pkgfile
blob: 10dc2f380ac667b964f57e54c41b3df307b7cf1f (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
# Description: Helper tools for libalpm
# URL: https://github.com/andrewgregory/pacutils
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: pacman

name=pacutils
version=0.9.0
release=1
source=(
https://github.com/andrewgregory/pacutils/archive/cb761a911ca54374c0e32f92a177976275dbfe9a.tar.gz
https://github.com/andrewgregory/globdir.c/archive/f7ea40047c1b23e5035a3626c9187c64539d66f2.tar.gz
https://github.com/andrewgregory/mINI.c/archive/ee64e149ed725b932adf23e0228f7cd8cb856901.tar.gz
https://github.com/andrewgregory/tap.c/archive/8ce85ce0ab95593c333e705f6eff44121b29e142.tar.gz
)

build() {
    cd $name-*
    rm -rf --one-file-system ext/globdir.c ext/mini.c t/tap.c
    mv ../globdir.c-* ext/globdir.c
    mv ../mINI.c-* ext/mini.c
    mv ../tap.c-* t/tap.c

    make SYSCONFDIR=/etc LOCALSTATEDIR=/var
    make check
    make DESTDIR=$PKG PREFIX=/usr install
}