pkgname=libslirp pkgver=4.6.1 fetch() { curl "https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v$pkgver/libslirp-v$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2 tar -xf $pkgname-$pkgver.tar.bz2 mv $pkgname-v$pkgver $pkgname-$pkgver mkdir $pkgname-$pkgver/build } build() { cd $pkgname-$pkgver cd build meson .. \ --buildtype=release \ --prefix=/usr \ --libexecdir=lib samu } package() { cd $pkgname-$pkgver cd build DESTDIR=$pkgdir samu install } license() { cd $pkgname-$pkgver cat LICENSE # cat COPYING }