crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

Pkgfile (819B)


      1 # Description: Hierarchial argument parsing library broken out from glibc
      2 # URL: http://www.lysator.liu.se/~nisse/misc/
      3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com
      4 # Depends on: bzip2 xz zlib
      5 
      6 name=argp-standalone
      7 version=1.5.0
      8 release=1
      9 source=(https://github.com/$name/$name/archive/refs/tags/$version.tar.gz
     10     gnu89-inline.patch)
     11 renames=($name-$version.tar.gz SKIP)
     12 
     13 build() {
     14     cd $name-$version
     15 
     16     patch -Np1 -i $SRC/gnu89-inline.patch
     17     autoreconf -vfi
     18 
     19     export CFLAGS="$CFLAGS -fPIC"
     20     ./configure \
     21         --prefix=/usr \
     22         --sysconfdir=/etc \
     23         --mandir=/usr/share/man \
     24         --localstatedir=/var
     25 
     26     make
     27 
     28     mkdir -p "$PKG"/usr/{include,lib}
     29     install -m 0644 argp.h "$PKG"/usr/include/argp.h
     30     install -m 0644 libargp.a "$PKG"/usr/lib/libargp.a
     31 }