From 293edc16c8ceae0aba1abd6bd6ca6d37f9691fdf Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 13 Dec 2025 12:18:50 -0800 Subject: [PATCH] add: xbps (#8316) (#8328) * add: xbps * im staking my reputation on this * hopefully this works * bweh * Revert "bweh" This reverts commit be4435fc7ee084f4d75f003506b45de48147869b. * Revert "hopefully this works" This reverts commit 04f8d55bf9db80d565f1a5143ebdff06bc56fa6f. * cflags changes (cherry picked from commit 97233c5442a9c1f34adcbbaefcf1993adfca9b35) Co-authored-by: metcya <134973769+metcya@users.noreply.github.com> --- anda/system/xbps/anda.hcl | 5 +++ anda/system/xbps/update.rhai | 1 + anda/system/xbps/xbps.spec | 75 ++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 anda/system/xbps/anda.hcl create mode 100644 anda/system/xbps/update.rhai create mode 100644 anda/system/xbps/xbps.spec diff --git a/anda/system/xbps/anda.hcl b/anda/system/xbps/anda.hcl new file mode 100644 index 0000000000..cac5e59859 --- /dev/null +++ b/anda/system/xbps/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "xbps.spec" + } +} diff --git a/anda/system/xbps/update.rhai b/anda/system/xbps/update.rhai new file mode 100644 index 0000000000..060990e1d9 --- /dev/null +++ b/anda/system/xbps/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("void-linux/xbps")); diff --git a/anda/system/xbps/xbps.spec b/anda/system/xbps/xbps.spec new file mode 100644 index 0000000000..b7330525b2 --- /dev/null +++ b/anda/system/xbps/xbps.spec @@ -0,0 +1,75 @@ +%global _distro_extra_cflags -Wno-discarded-qualifiers + +Name: xbps +Version: 0.60.6 +Release: 1%?dist +License: BSD-2-Clause AND BSD-3-Clause AND ISC +Summary: A binary package system designed and implemented from scratch +URL: https://github.com/void-linux/xbps +Source: %{url}/archive/refs/tags/%{version}.tar.gz +Packager: Metcya + +BuildRequires: gcc +BuildRequires: make +BuildRequires: pkgconfig(pkgconf) +BuildRequires: pkgconfig(zlib) +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(libarchive) >= 3.3.3 +Requires: %name-lib = %evr + +%pkg_completion -B xbps xbps-checkvers xbps-create xbps-dgraph xbps-install xbps-pkgdb xbps-query xbps-reconfigure xbps-remove xbps-rindex +%pkg_completion -z xbps xbps_src + +%description +The X Binary Package System (in short XBPS) is a binary package system designed +and implemented from scratch. Its goal is to be fast, easy to use, bug-free, +featureful and portable as much as possible. + +%package libs +%pkg_libs_files + +%package static +%pkg_static_files + +%package devel +%pkg_devel_files + +%prep +%autosetup + +%build +%configure +%make_build + +%install +%make_install + +%files +%license LICENSE LICENSE.3RDPARTY +%doc README.md NEWS 3RDPARTY AUTHORS +%_bindir/xbps-alternatives +%_bindir/xbps-checkvers +%_bindir/xbps-create +%_bindir/xbps-dgraph +%_bindir/xbps-digest +%_bindir/xbps-fbulk +%_bindir/xbps-fetch +%_bindir/xbps-install +%_bindir/xbps-pkgdb +%_bindir/xbps-query +%_bindir/xbps-reconfigure +%_bindir/xbps-remove +%_bindir/xbps-rindex +%_bindir/xbps-uchroot +%_bindir/xbps-uhelper +%_bindir/xbps-uunshare +%_datadir/%name.d/00-repository-main.conf +%_datadir/%name.d/%name.conf +%_mandir/man1/*.1.* +%_mandir/man5/*.5.* +%_mandir/man7/*.7.* +/var/db/%name/keys/*.plist + +%changelog +* Fri Dec 12 2025 Metcya - 0.60.6 +- package xbps