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 + } +}