smlinux/base/c-ares/c-ares.SMBuild

34 lines
734 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=c-ares
version=1.16.1
build=1sml
homepage="https://c-ares.haxx.se/"
download="https://c-ares.haxx.se/download/c-ares-$version.tar.gz"
desc="C library for asynchronous DNS requests including name resolves"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix="" \
--enable-shared
make
make install DESTDIR=$pkg
cp $srcdir/LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
34e15bb43478caf302a721b080ce1e955b8d9e91145330214c456a0f2b157b7f759eb450a0e8ce94089468347a51bbb0f457de9a889541fc0f5e8fa59f9a2d58 c-ares-1.16.1.tar.lz
"