diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index da6d7dae0193c06e28b723343de66029d246072b..9655e7e528bd0ee905efb84c9c324748df649e87 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -1,77 +1,87 @@ -# Obarun : 66 init/supervisor +# Distribution : Obarun S6/66 +#----------------------------- # Maintainer : Eric Vidal <eric@obarun.org> # Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org> -# PkgSource : https://git.obarun.org/pkg/obcore/66-tools -#----------------------------------------------------------------------------------------------- - -#-----------------------------------------| DESCRIPTION |--------------------------------------- - -pkgdesc="small tools and helpers for service scripts execution" +#---------------- +# Obarun PkgSrc : https://git.obarun.org/pkg/obcore/66-tools +#-------------------------------------------------------------------------------- +# DESCRIPTION ] pkgname=66-tools - pkgver=0.0.8.0 pkgrel=1 +pkgdesc="small tools and helpers for service scripts execution" -url="https://framagit.org/Obarun/66-tools.git" +url='https://framagit.org/Obarun/66-tools.git' -track=tag -target="v${pkgver}" +track="tag" +target="v$pkgver" source=( "${pkgname}::git+${url}#${track}=${target}" ) -#-------------------------------------| BUILD CONFIGURATION |----------------------------------- +#---------------------- +# BUILD CONFIGURATION ] makedepends=( 'git' 'skalibs>=2.11.0.0' 'execline>=2.8.1.0' 'oblibs>=0.1.4.0' - 'lowdown') + 'lowdown' +) -#--------------------------------------------| BUILD |------------------------------------------- +#------------------------ +# INSTALL CONFIGURATION ] -build() { - cd "${pkgname}" +depends=( + 'skalibs>=2.11.0.0' + 'execline>=2.8.1.0' + 'oblibs>=0.1.4.0' +) - ./configure \ - --bindir=/usr/bin \ - --disable-shared \ - --with-lib=/usr/lib/skalibs \ - --with-lib=/usr/lib/execline \ - --with-lib=/usr/lib/oblibs \ - --with-ns-rule=/usr/lib/66/script/ns +groups=( + 'base' + 's6-suite' +) - make -} +#---------------- +# BUILD CONTROL ] -#-------------------------------------------| PACKAGE |------------------------------------------ +_flags=( + --bindir=/usr/bin + --with-lib=/usr/lib/skalibs + --with-lib=/usr/lib/execline + --with-lib=/usr/lib/oblibs + --with-ns-rule=/usr/lib/66/script/ns + --disable-shared +) -package() { - cd "${pkgname}" +#-------- +# BUILD ] - make DESTDIR="${pkgdir}" install install-ns-rule +build() { + cd $pkgname - install -Dm 0644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE + ./configure "${_flags[@]}" + make } -#------------------------------------| INSTALL CONFIGURATION |---------------------------------- +#---------- +# PACKAGE ] -arch=('x86_64') +package() { + cd $pkgname -groups=( - 'base' - 's6-suite' -) + make DESTDIR="$pkgdir" install install-ns-rule -depends=( - 'skalibs>=2.11.0.0' - 'execline>=2.8.1.0' - 'oblibs>=0.1.4.0' -) + install -Dm 0644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE +} + +#-------------------- +# ARCH LICENSE AUTH ] -#-------------------------------------| SECURITY AND LICENCE |---------------------------------- +arch=(x86_64) +license=(ISC) -sha512sums=('SKIP') -license=('ISC') +sha512sums=('')