From fd73e03d968878d741dfd0f3f933537a9c3fd787 Mon Sep 17 00:00:00 2001 From: KawaiiAmber Date: Mon, 11 Jan 2021 13:42:08 -0700 Subject: [PATCH 1/2] New package: greenclip-4.0 --- srcpkgs/greenclip/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/greenclip/template diff --git a/srcpkgs/greenclip/template b/srcpkgs/greenclip/template new file mode 100644 index 000000000000..323d5a1a8dd2 --- /dev/null +++ b/srcpkgs/greenclip/template @@ -0,0 +1,19 @@ +# Template file for 'greenclip' +pkgname=greenclip +version=4.0 +revision=1 +build_style=haskell-stack +hostmakedepends="ghc stack pkg-config" +makedepends="libX11-devel libXinerama-devel libXrandr-devel libXScrnSaver-devel" +short_desc="Simple clipboard manager to be integrated with rofi" +maintainer="KawaiiAmber " +license="BSD-3-Clause" +homepage="https://github.com/erebe/greenclip" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=165721d0605c95a4a7d0824b8158cc7796857f88430bc3944a826273a6c14c23 +nopie=yes +nocross="can't yet cross compile Haskell" + +post_install() { + vlicense LICENSE +} From 7f804c26bcce146eff0ad17be040af62fa620c96 Mon Sep 17 00:00:00 2001 From: KawaiiAmber Date: Mon, 14 Dec 2020 18:18:20 -0700 Subject: [PATCH 2/2] New package: dotnet-sdk-bin-5.0.202 --- common/shlibs | 1 + srcpkgs/dotnet-sdk/template | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 srcpkgs/dotnet-sdk/template diff --git a/common/shlibs b/common/shlibs index 995c9750a41f..82d98c908cb3 100644 --- a/common/shlibs +++ b/common/shlibs @@ -409,6 +409,7 @@ libcdio.so.19 libcdio-2.1.0_1 libmpcdec.so.5 libmpcdec-1.2.6_1 libproxy.so.1 libproxy-0.4.6_1 libmoar.so MoarVM-2015.11_1 +libc.musl-x86_64.so.1 dotnet-sdk-bin-5.0.101_1 libFLAC.so.8 libflac-1.2.1_1 libFLAC++.so.6 libflac-1.2.1_1 libField3D.so.1.7 Field3D-1.7.3_1 diff --git a/srcpkgs/dotnet-sdk/template b/srcpkgs/dotnet-sdk/template new file mode 100644 index 000000000000..be32f8c689c8 --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,46 @@ +# Template file for 'dotnet-sdk-bin' +pkgname=dotnet-sdk +version=5.0.202 +revision=1 +hostmakedepends="git tar" +distfiles="https://github.com/dotnet/source-build/archive/refs/tags/v${version}-SDK.tar.gz" +wrksrc="source-build-${version}-SDK" +short_desc="SDK for making dotnet CORE apps" +maintainer="KawaiiAmber " +license="MIT" +homepage="https://dotnet.microsoft.com" +checksum=aea8e4f3323aa95316969958585ccc7030f9be7c79d38188a9137ef789ada7cd + +_prof=${DESTDIR}/etc/profile.d +_target=${DESTDIR}/usr/libexec/dotnet + +case "${XBPS_TARGET_MACHINE}" in + "x86_64*") _ARCHITECTURE="x64" ;; + "aarch64*") _ARCHITECTURE="arm64" ;; +esac +_RUNTIME_ID="void-${_ARCHITECTURE}" + +do_configure() { + vmkdir ${_prof} + vcopy ${FILESDIR}/dotnet.sh ${_prof} +} + +do_build() { + DOTNET_CLI_TELEMETRY_OPTOUT="true" sh ./build.sh -b +} + +post_build() { + tar -zxvf ./artifacts/"${_ARCHITECTURE}"/Release/dotnet-sdk-"${version}"-"${RUNTIME_ID}".tar.gz +} + +do_install() { + vmkdir ${_target} + for file in artifacts/"${_ARCHITECTURE}"/Release/dotnet-sdk-"${version}"-"${RUNTIME_ID}"/* + do + vcopy ${file} ${_target} + done +} + +post_install() { + vlicense LICENSE.txt +}