daemontools: add slashpackage build-style and utilize

This commit is contained in:
TJ Vanderpoel 2015-02-23 21:43:28 -06:00 committed by Juan RP
parent 3ff4c43f9c
commit b7c6857c62
2 changed files with 38 additions and 12 deletions

View File

@ -0,0 +1,36 @@
#
# This helper is for templates building slashpackage software.
# http://cr.yp.to/slashpackage.html
#
# required variables
#
# build_style=slashpackage
# wrksrc=<category>/${pkgname}-${version}
# distfiles=<download link>
#
# example (daemontools)
#
# Template file for 'daemontools'
# pkgname=daemontools
# version=0.76
# revision=1
# wrksrc=admin/${pkgname}-${version}
# build_style=gnu-makefile
# short_desc="A collection of tools for managing UNIX services"
# maintainer="bougyman <tj@geoforce.com>"
# license="Public Domain"
# homepage="http://cr.yp.to/daemontools.html"
# distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz"
# checksum=a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
# patch_args="-p1" # << important for most slashpackage patches
do_build() {
package/compile
}
do_install() {
for command in command/*; do
vbin $command
done
}

View File

@ -1,9 +1,9 @@
# Template file for 'daemontools' # Template file for 'daemontools'
pkgname=daemontools pkgname=daemontools
version=0.76 version=0.76
revision=1 revision=2
wrksrc=admin/${pkgname}-${version} wrksrc=admin/${pkgname}-${version}
build_style=gnu-makefile build_style=slashpackage
short_desc="A collection of tools for managing UNIX services" short_desc="A collection of tools for managing UNIX services"
maintainer="bougyman <tj@geoforce.com>" maintainer="bougyman <tj@geoforce.com>"
license="Public Domain" license="Public Domain"
@ -12,13 +12,3 @@ distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz"
checksum=a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f checksum=a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f
patch_args="-p1" patch_args="-p1"
do_build() {
package/compile
}
do_install() {
for command in command/*; do
vbin $command
done
}