summaryrefslogblamecommitdiff
path: root/system/libucontext/APKBUILD
blob: 6cc2b0e64a82d0547a7796704a4ab6b52f8103e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
              
                   
            
        
                                           
                                                       


             
                          
                                                                                 
                     
                    
         



                                           
                                         

















                                                               
                                                                                                                                                                      
                                                                                                                                               
                                                                                                                                               
# Maintainer: 
pkgname=libucontext
pkgver=0.1.3
pkgrel=4
pkgdesc="ucontext function implementations"
url="https://git.dereferenced.org/kaniini/libucontext/"
arch="all"
license="ISC"
depends=""
subpackages="$pkgname-dev"
source="https://distfiles.dereferenced.org/libucontext/libucontext-$pkgver.tar.xz
	powerpc.patch
	static.patch
	"

case "$CTARGET_ARCH" in
armhf)		LIBUCONTEXT_ARCH="arm" ;;
ppc64le)	LIBUCONTEXT_ARCH="ppc64" ;;
pmmx)		LIBUCONTEXT_ARCH="x86" ;;
*)		LIBUCONTEXT_ARCH="$CTARGET_ARCH" ;;
esac

build() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH"
}

check() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH" check
}

package() {
	cd "$builddir"
	make ARCH="$LIBUCONTEXT_ARCH" DESTDIR="$pkgdir" install
}

sha512sums="9e0694c09f159de714b655f6a4201a05c8d1871ee7376bb6bf824206b45475cfbd8269ca1caa75b9c322624d9f77d3fc3f938228a4bdd267a5ddceb57ca5c1ab  libucontext-0.1.3.tar.xz
d0583c37915b62b3a5105e424e1e66f0b1f8c1ef5c28bcf4d02faf8803ef514cf4af71393c4cd027b552061b15f68f5227c50e0be8645cfe08d786cec4d9dcd9  powerpc.patch
d63cf70c5226508f76dd1483a607e6e54417e062b7b77f3e70c7be244aff9cb81d19458b7f208bdf70c550aaa4da728eb91d9c280c461f64e6836c9d409f9aeb  static.patch"