2014-05-30 15:30:32 +00:00
|
|
|
# Template file for 'void-repo-nonfree'
|
|
|
|
pkgname=void-repo-nonfree
|
2015-05-08 15:49:55 +00:00
|
|
|
version=6
|
2014-05-30 15:30:32 +00:00
|
|
|
revision=1
|
2014-05-30 15:33:37 +00:00
|
|
|
noarch=yes
|
2014-05-30 15:30:32 +00:00
|
|
|
build_style=meta
|
|
|
|
short_desc="Void Linux drop-in file for the nonfree repository"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-05-30 15:30:32 +00:00
|
|
|
license="Public Domain"
|
|
|
|
homepage="http://www.voidlinux.eu"
|
|
|
|
|
|
|
|
do_install() {
|
2014-11-06 09:10:05 +00:00
|
|
|
vmkdir usr/share/xbps.d
|
|
|
|
echo "repository=http://repo.voidlinux.eu/current/nonfree" > \
|
|
|
|
${DESTDIR}/usr/share/xbps.d/10-repository-nonfree.conf
|
|
|
|
echo "repository=http://repo.voidlinux.eu/current/debug" > \
|
|
|
|
${DESTDIR}/usr/share/xbps.d/20-repository-debug.conf
|
2015-05-08 15:49:55 +00:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) sed -i 's,repo.voidlinux.eu,musl.voidlinux.net,g' ${DESTDIR}/usr/share/xbps.d/*.conf;;
|
|
|
|
esac
|
2014-05-30 15:30:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void-repo-debug_package() {
|
|
|
|
noarch=yes
|
2014-05-30 15:38:18 +00:00
|
|
|
short_desc="${short_desc/nonfree/debug}"
|
2014-05-30 15:30:32 +00:00
|
|
|
pkg_install() {
|
2014-11-06 09:10:05 +00:00
|
|
|
vmove usr/share/xbps.d/20-repository-debug.conf
|
2014-05-30 15:30:32 +00:00
|
|
|
}
|
|
|
|
}
|