summaryrefslogblamecommitdiff
path: root/user/libslirp/APKBUILD
blob: 395f7ac9806e3f6bf7d254dc49a4dad481d95d5b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                        
            








                                                   
                                                                                                        
                          

                    
                                        


                     















                                                 
                                                                                                                                                                     
                                                                                                                                                    
                                                                                                                                               
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=libslirp
pkgver=4.7.0
pkgrel=0
pkgdesc="A general-purpose TCP/IP emulator"
url="https://gitlab.freedesktop.org/slirp/libslirp"
arch="all"
options="!check"  # No test suite.
license="BSD-3-Clause AND MIT"
depends=""
makedepends="glib-dev meson"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.bz2
	git-describe.patch
	static.patch
	"
builddir="$srcdir/${pkgname}-v${pkgver}"
# secfixes:
#   4.3.0-r0:
#     - CVE-2020-1983

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="01aee79997c37e3de50da1583671aa30a1bfb837d4c5c648194bbfdb350b7f8dc89653dbdb42530a409c0d0f4e40eb111cc3fe0b9f4890fd5a062446e92c0f62  libslirp-v4.7.0.tar.bz2
fb66abe30c7b36c93bf759960275119c6d34e57861efe0cdc147a606a7a13b2d29f0f77dfe99326539800bd4ded9e39c736abd9d4ca9d6f16df2d50fd70fb7f6  git-describe.patch
bb1bb5443d8083099d2a270b78b7ec74daa26634b2062d2c30460ed118b333942a9a555c96910216bb746311ae021d457f39a304a60fe07a3908a0c315a7c756  static.patch"