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


             
                          
                                                                                 
                     
         



                                           
                                         

















                                                               
                                                                                                                                                                      
                                                                                                                                                
# Maintainer: 
pkgname=libucontext
pkgver=0.1.3
pkgrel=2
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
	"

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
22627fc66e57f64c24a8fb0d6e64fda8abfc4f72cc7a9b3d4f06cdb2b406adacd3d1b7eaa0321133959557ed4ee6856bdf5aee764f3b90981ec5b41cc1e5cd91  powerpc.patch"