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


             
              
                          


                                                                                 

                       
                                             
                                         
                                           
                                         



                                                   



                                     



                                           


                                                               

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

case "$CTARGET_ARCH" in
aarch64_be)	LIBUCONTEXT_ARCH="aarch64" ;;
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="6603f2dcd87c4d9919c1726f2964632483e1a647733ff543d5935e3e2dac548adf320f1f9fb4c494691fe99fb393d64b15369f04d3783b2ca4c40b68c3d87865  libucontext-1.2.tar.xz
e5855aaf5042856e019dcd8bbf85c1319c4ed3ea836fd64617595b1fcacc14a101f7631e9d07a8af7f624a82c59a5bc6d2c1011b961ba4fede37725b6f5e9c37  pmmx.patch"