From 541f9dfcaf069c00c6bdceff53b3c51059cff2b6 Mon Sep 17 00:00:00 2001 From: TJ Vanderpoel Date: Wed, 25 Feb 2015 12:32:54 -0600 Subject: [PATCH] sv-helper: remove build-style, add do_extract() --- srcpkgs/sv-helper/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/sv-helper/template b/srcpkgs/sv-helper/template index dad032be999..4c999fbce65 100644 --- a/srcpkgs/sv-helper/template +++ b/srcpkgs/sv-helper/template @@ -2,7 +2,6 @@ pkgname=sv-helper version=1.0.2 revision=1 -build_style="fetch" depends="bash runit" short_desc="Utilities to help administer a runit-as-pid1 system" maintainer="bougyman " @@ -12,16 +11,17 @@ distfiles="https://api.github.com/repos/rubyists/sv-helper/tarball/${version}>${ checksum=3997895a65ee688dc1c7b071052f822c0b097c873aeea09081ec933df3140b13 system_accounts="rsvlog" -log_homedir="/var/log" -log_descr="User for logging" -_commands="sv-list svls sv-find sv-enable sv-disable" +rsvlog_homedir="/var/log" +rsvlog_descr="User for logging" do_extract() { - tar xv --xform="s|rubyists-sv-helper-[^/]*/|sv-helper-${version}/|" -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz - mv ${pkgname}-${version}/* . + local f curfile + mkdir -p ${wrksrc} + tar x --strip-components=1 -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz -C ${wrksrc} } do_install() { + _commands="sv-list svls sv-find sv-enable sv-disable" vbin sv-helper.sh sv-helper vbin rsvlog.sh rsvlog for cmd in $_commands; do