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

            
                                                      
                                                


             
              
                          
                                                                                        

                       
                                         
                                           
                                         



                                                   



                                     



                                           


                                                               
                                                                                                                                                                       
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libucontext
pkgver=0.9.0
pkgrel=0
pkgdesc="Implementation of software-defined threading"
url="https://code.foxkit.us/adelie/libucontext/"
arch="all"
license="ISC"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="https://distfiles.adelielinux.org/source/libucontext/libucontext-$pkgver.tar.xz"

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

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

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

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

sha512sums="47ffa743e0b364d7a5d5ae633f89e83a7e3bbdf62a8a703a06a522c08b187b785548e8b8d58d53fc4fd984575f086794e74c12d40075326c6e88024e841550b6  libucontext-0.9.0.tar.xz"