From 33e9856f96b5556612ffffe79b5906e4d717527b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 8 May 2015 17:31:48 +0200 Subject: [PATCH] New package: void-repo-musl{,-debug}. --- srcpkgs/void-repo-musl-debug | 1 + srcpkgs/void-repo-musl/template | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 120000 srcpkgs/void-repo-musl-debug create mode 100644 srcpkgs/void-repo-musl/template diff --git a/srcpkgs/void-repo-musl-debug b/srcpkgs/void-repo-musl-debug new file mode 120000 index 0000000000..717ae326e2 --- /dev/null +++ b/srcpkgs/void-repo-musl-debug @@ -0,0 +1 @@ +void-repo-musl \ No newline at end of file diff --git a/srcpkgs/void-repo-musl/template b/srcpkgs/void-repo-musl/template new file mode 100644 index 0000000000..7dcba87e9f --- /dev/null +++ b/srcpkgs/void-repo-musl/template @@ -0,0 +1,26 @@ +# Template file for 'void-repo-musl' +pkgname=void-repo-musl +version=1 +revision=1 +noarch=yes +build_style=meta +short_desc="Void Linux drop-in file for the main repository (musl libc)" +maintainer="Juan RP " +license="Public Domain" +homepage="http://www.voidlinux.eu" + +do_install() { + vmkdir usr/share/xbps.d + echo "repository=http://musl.voidlinux.net/current" > \ + ${DESTDIR}/usr/share/xbps.d/10-repository.conf + echo "repository=http://musl.voidlinux.net/current/debug" > \ + ${DESTDIR}/usr/share/xbps.d/20-repository-debug.conf +} + +void-repo-musl-debug_package() { + noarch=yes + short_desc="${short_desc/main/debug}" + pkg_install() { + vmove usr/share/xbps.d/20-repository-debug.conf + } +}