Created
February 5, 2020 10:33
-
-
Save buttercutter/73ea07e75e72259e9c11c031983dbf42 to your computer and use it in GitHub Desktop.
PKGBUILD for installing intel SGX SDK and PSW https://bbs.archlinux.org/viewtopic.php?id=252511
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: promach | |
pkgname=linux-sgx-psw | |
pkgver=r300.9ddec08f | |
pkgrel=1 | |
pkgdesc="Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification" | |
arch=('i686' 'x86_64') | |
url="https://01.org/intel-softwareguard-extensions" | |
license=('GPL') | |
groups=() | |
depends=() | |
makedepends=('cmake' 'protobuf' 'libunwind' 'ocaml' 'ocamlbuild' 'automake' 'autoconf' 'libtool' 'wget' 'python' 'openssl' 'git') | |
optdepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=('!buildflags') | |
install= | |
changelog= | |
source=('git+https://github.com/intel/linux-sgx.git') | |
noextract=() | |
md5sums=('SKIP') #generate with 'makepkg -g' | |
build() { | |
cd "$srcdir/linux-sgx" | |
./download_prebuilt.sh | |
make clean | |
make psw DEBUG=1 | |
make psw_install_pkg DEBUG=1 | |
} | |
pkgver() { | |
cd "$srcdir/linux-sgx" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
cd "$srcdir/linux-sgx" | |
install -dm 755 "$pkgdir/opt/intel/sgxpsw" | |
bsdtar -xf linux/installer/common/psw/output/sgxpsw_1.0.orig.tar.gz -C "$pkgdir/opt/intel/sgxpsw" --strip-components 1 --no-same-owner package | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: promach | |
pkgname=linux-sgx-sdk | |
pkgver=r300.9ddec08f | |
pkgrel=1 | |
pkgdesc="Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification" | |
arch=('i686' 'x86_64') | |
url="https://01.org/intel-softwareguard-extensions" | |
license=('GPL') | |
groups=() | |
depends=() | |
makedepends=('cmake' 'protobuf' 'libunwind' 'ocaml' 'ocamlbuild' 'automake' 'autoconf' 'libtool' 'wget' 'python' 'openssl' 'git') | |
optdepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=('!buildflags') | |
install= | |
changelog= | |
source=('git+https://github.com/intel/linux-sgx.git') | |
noextract=() | |
md5sums=('SKIP') #generate with 'makepkg -g' | |
build() { | |
cd "$srcdir/linux-sgx" | |
./download_prebuilt.sh | |
make clean | |
make sdk DEBUG=1 | |
make sdk_install_pkg DEBUG=1 | |
} | |
pkgver() { | |
cd "$srcdir/linux-sgx" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
cd "$srcdir/linux-sgx" | |
#echo "no\n/opt/intel/sgxsdk\n" > ./sgx_linux_x64_sdk_*.bin | |
#make DESTDIR="$pkgdir/opt/intel/sgxsdk" install | |
install -dm 755 "$pkgdir/opt/intel/sgxsdk" | |
bsdtar -xf linux/installer/common/sdk/output/sgxsdk_1.0.orig.tar.gz -C "$pkgdir/opt/intel/sgxsdk" --strip-components 1 --no-same-owner package | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment