summaryrefslogtreecommitdiff
path: root/core/attr/MAKEPKG
blob: 8b8619054437451f0c73b02d13a1e7d233ac2124 (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
41
42
43
44
45
#!/bin/mkpkg
# description: Extended attribute support library
# url: https://savannah.nongnu.org/projects/attr

name=attr
version=2.6.0
release=1
depends=()
makedeps=()
source=(https://download.savannah.gnu.org/releases/attr/attr-$version.tar.xz)
sha256sums=(
    "6c8a2148a7b85043b68492bce43316b0e2e214fc4e628c7ede078e76e216330b"
)

patch() {
    cd attr-$version
    sed -i '1i #include <libgen.h>' tools/attr.c
}

build() {
    cd attr-$version
    #export CFLAGS="$CFLAGS -D_GNU_SOURCE" 
    ./configure \
        --prefix=/ \
        --libdir=/lib \
        --includedir=/include \
        --bindir=/bin \
        --mandir=/usr/share/man \
        --disable-static \
        --disable-nls

    make
    make DESTDIR=$PKG install

    # Remove docs
    rm -rf $PKG/share
    rm -rf $PKG/etc
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh