118 lines
2.1 KiB
Plaintext
118 lines
2.1 KiB
Plaintext
# Distribution : Obarun S6/66
|
|
#-----------------------------
|
|
# Maintainer : Eric Vidal <eric@obarun.org>
|
|
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
|
|
#----------------
|
|
# Obarun PkgSrc : https://git.obarun.org/pkg/obcore/66
|
|
#--------------------------------------------------------------------------------
|
|
# DESCRIPTION ]
|
|
|
|
pkgname=66
|
|
pkgver=0.6.2.0
|
|
pkgrel=1
|
|
pkgdesc="Small tools built around s6 and s6-rc programs"
|
|
|
|
url='https://framagit.org/Obarun/66.git'
|
|
|
|
track="tag"
|
|
target="v$pkgver"
|
|
source=(
|
|
"${pkgname}::git+${url}#${track}=${target}"
|
|
)
|
|
|
|
#----------------------
|
|
# BUILD CONFIGURATION ]
|
|
|
|
makedepends=(
|
|
'git'
|
|
'skalibs>=2.11.0.0'
|
|
'execline>=2.8.1.0'
|
|
's6>=2.11.0.0'
|
|
's6-rc>=0.5.2.3'
|
|
'oblibs>=0.1.4.0'
|
|
'lowdown'
|
|
'linux-api-headers'
|
|
)
|
|
|
|
#------------------------
|
|
# INSTALL CONFIGURATION ]
|
|
|
|
depends=(
|
|
'skalibs>=2.11.0.0'
|
|
'execline>=2.8.1.0'
|
|
's6>=2.11.0.0'
|
|
's6-rc>=0.5.2.3'
|
|
'oblibs>=0.1.4.0'
|
|
)
|
|
|
|
backup=(
|
|
'etc/66/init.conf'
|
|
'etc/66/rc.init'
|
|
'etc/66/rc.init.container'
|
|
'etc/66/rc.shutdown'
|
|
'etc/66/rc.shutdown.final'
|
|
'usr/bin/init'
|
|
)
|
|
|
|
conflicts=(
|
|
's6-linux-init'
|
|
)
|
|
|
|
groups=(
|
|
'base'
|
|
's6-suite'
|
|
)
|
|
|
|
install=66.install
|
|
|
|
#----------------
|
|
# BUILD CONTROL ]
|
|
|
|
_flags=(
|
|
--bindir=/usr/bin
|
|
--shebangdir=/usr/bin
|
|
--with-system-service=/usr/lib/66/service
|
|
--with-system-module=/usr/lib/66/module
|
|
--with-system-script=/usr/lib/66/script
|
|
--with-s6-log-timestamp=iso
|
|
--with-s6-log-user=s6log
|
|
--with-lib=/usr/lib/skalibs
|
|
--with-lib=/usr/lib/execline
|
|
--with-lib=/usr/lib/s6
|
|
--with-lib=/usr/lib/s6-rc
|
|
--with-lib=/usr/lib/oblibs
|
|
--disable-shared
|
|
)
|
|
|
|
#--------
|
|
# BUILD ]
|
|
|
|
build() {
|
|
cd $pkgname
|
|
|
|
./configure "${_flags[@]}"
|
|
make
|
|
}
|
|
|
|
#----------
|
|
# PACKAGE ]
|
|
|
|
package() {
|
|
cd $pkgname
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
## move wrapper at the correct place
|
|
mv "$pkgdir"/etc/66/{halt,init,poweroff,reboot,shutdown} "$pkgdir"/usr/bin
|
|
|
|
install -Dm 0644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
|
}
|
|
|
|
#--------------------
|
|
# ARCH LICENSE AUTH ]
|
|
|
|
arch=(x86_64)
|
|
license=(ISC)
|
|
|
|
sha512sums=('')
|