From ce62569cb55db7943d4a1514f92261a006abb4e6 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 15 Apr 2018 20:36:24 +0200 Subject: [PATCH] New package: xbps-beta-0.51.90 --- srcpkgs/libxbps-beta | 1 + srcpkgs/libxbps-beta-devel | 1 + srcpkgs/xbps-beta/INSTALL | 12 +++++++ srcpkgs/xbps-beta/template | 68 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 120000 srcpkgs/libxbps-beta create mode 120000 srcpkgs/libxbps-beta-devel create mode 100644 srcpkgs/xbps-beta/INSTALL create mode 100644 srcpkgs/xbps-beta/template diff --git a/srcpkgs/libxbps-beta b/srcpkgs/libxbps-beta new file mode 120000 index 00000000000..5c982f55dd0 --- /dev/null +++ b/srcpkgs/libxbps-beta @@ -0,0 +1 @@ +xbps-beta \ No newline at end of file diff --git a/srcpkgs/libxbps-beta-devel b/srcpkgs/libxbps-beta-devel new file mode 120000 index 00000000000..5c982f55dd0 --- /dev/null +++ b/srcpkgs/libxbps-beta-devel @@ -0,0 +1 @@ +xbps-beta \ No newline at end of file diff --git a/srcpkgs/xbps-beta/INSTALL b/srcpkgs/xbps-beta/INSTALL new file mode 100644 index 00000000000..a0a3dcfca94 --- /dev/null +++ b/srcpkgs/xbps-beta/INSTALL @@ -0,0 +1,12 @@ +case "${ACTION}" in +post) + chown root:xbuilder usr/bin/xbps-uchroot + chmod 4750 usr/bin/xbps-uchroot + + if [ -d usr/sbin -a ! -L /usr/sbin ]; then + for f in usr/bin/xbps-*; do + ln -sr $f usr/sbin/$(basename $f) + done + fi + ;; +esac diff --git a/srcpkgs/xbps-beta/template b/srcpkgs/xbps-beta/template new file mode 100644 index 00000000000..3b79a653eda --- /dev/null +++ b/srcpkgs/xbps-beta/template @@ -0,0 +1,68 @@ +# Template file for 'xbps-beta' +pkgname=xbps-beta +version=0.51.90 +revision=1 +build_style=configure +short_desc="The XBPS package system utilities" +maintainer="Juan RP " +homepage="https://github.com/voidlinux/xbps" +license="2-clause-BSD" +distfiles="https://github.com/voidlinux/xbps/archive/$version.tar.gz" +checksum=5e768a708843afc8cd2218465868235acfd978428188e0e156a46bc07f3f3f0c +wrksrc=xbps-${version} +provides="xbps-${version}_${revision}" +replaces="xbps>=0" + +CFLAGS="-Wno-error" + +hostmakedepends="pkg-config" +makedepends="zlib-devel libressl-devel libarchive-devel" +depends="ca-certificates xbps-triggers libxbps-beta>=$version" + +# xbps needs symbols from glibc-2.22 +case "$XBPS_TARGET_MACHINE" in + *-musl) : ;; + *) depends+=" glibc>=2.22" ;; +esac + +do_configure() { + HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \ + --bindir=/usr/bin +} +post_install() { + case "$XBPS_TARGET_MACHINE" in + aarch64*) # XXX different repo location + echo "repository=https://repo.voidlinux.eu/current/aarch64" > \ + ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + ;; + *-musl) # XXX different repo location + echo "repository=https://repo.voidlinux.eu/current/musl" > \ + ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + ;; + *) + echo "repository=https://repo.voidlinux.eu/current" > \ + ${DESTDIR}/usr/share/xbps.d/00-repository-main.conf + ;; + esac + vmkdir etc/xbps.d + touch ${DESTDIR}/etc/xbps.d/.empty +} + +libxbps-beta_package() { + short_desc+=" - runtime library" + provides="libxbps-${version}_${revision}" + replaces="libxbps>=0" + pkg_install() { + vmove "usr/lib/*.so.*" + } +} +libxbps-beta-devel_package() { + short_desc+=" - runtime library (development files)" + depends="zlib-devel libarchive-devel libxbps-beta>=${version}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}