Compare commits

..
5 Commits
Author SHA1 Message Date
wyj ce83099991 new bblfs: sys-apps/cyme-2.2.10 2026-01-19 17:20:06 -05:00
wyj 04d5885ded new bblfs: sys-apps/lshw-02.20.2b 2026-01-19 16:48:10 -05:00
wyj 2f2b0a7cde fix pipewire: add a conf 2026-01-19 14:47:21 -05:00
wyj 6ee7421691 new blfs: media-video/mpv-0.41.0 2026-01-18 21:08:01 -05:00
wyj d5d39d49ba update: lua multiversion 2026-01-18 20:59:43 -05:00
8 changed files with 252 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
pkgname=lua
pkgver=5.1.5
_majorver=${pkgver%.*}
pkgdesc='Powerful lightweight programming language designed for extending applications'
arch=('x86_64')
homepage='https://www.lua.org/'
depends=('readline')
license=('MIT')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://dev.gentoo.org/~soap/distfiles/${sources[0]}")
sha512sums=("bd827cb2e63cd71d15d846eb29c8745bf869e7b70e12c565ce173623d1fcd29dabf4d33a99c48f294151bb580d830c112cf178e2d80a5a5c36acc7b3bfcd7d24")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
}
# vim:ft=sh syn=sh et sw=2:
+1 -1
View File
@@ -15,7 +15,7 @@ src_prepare() {
}
src_build() {
./configure --prefix=/usr --with-readline
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
make
}
+113
View File
@@ -0,0 +1,113 @@
pkgname=mpv
pkgver=0.41.0
pkgdesc="Media player for the command line"
homepage="https://mpv.io/"
license=("LGPL-2.1+" "GPL-2+" "BSD" "ISC" "MIT")
depends=(
libass
libplacebo
ffmpeg
libdisplay-info
libdrm
"mesa[gbm]"
libglvnd
"libplacebo[opengl]"
"lua:5.1"
pipewire
libpulse
app-i18n/uchardet
libva
vulkan-loader
wayland
libxkbcommon
zlib
vulkan-headers
wayland-protocols
)
bdepends=(meson docutils wayland-scanner)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/mpv-player/mpv/archive/v${pkgver}.tar.gz")
sha512sums=("d8806ef04455aeb65d45c5956b4589d7a9728f869b74b9bcd8c9ab08475c28538334399ddc7fc2aee6a31fd178fe4b87ec755cd99ffa6e29ab4b6b61757b9320")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_args=(
--prefix=/usr
--buildtype=release
--wrap-mode=nodownload
-D python.bytecompile=1
-D cplayer=true
-D libmpv=true
-D tests=false
-D html-build=enabled
-D manpage-build=enabled
-D pdf-build=disabled
-D build-date=false
-D x11-clipboard=disabled
-D libarchive=disabled
-D libbluray=disabled
-D cdda=disabled
-D cplugins=enabled
-D dvbin=disabled
-D dvdnav=disabled
-D sdl2-gamepad=disabled
-D iconv=enabled
-D javascript=disabled
-D libavdevice=enabled
-D lcms2=disabled
-D lua=enabled
-D rubberband=disabled
-D uchardet=enabled
-D vapoursynth=disabled
-D zimg=disabled
-D zlib=enabled
# audio output
-D alsa=disabled
-D coreaudio=disabled
-D jack=disabled
-D openal=disabled
-D pipewire=enabled
-D pulse=enabled
-D sdl2-audio=disabled
-D sndio=disabled
# video output
-D x11=disabled
-D cocoa=disabled
-D drm=enabled
-D jpeg=disabled
-D caca=disabled
-D sdl2-video=disabled
-D sixel=disabled
-D wayland=enabled
-D xv=disabled
-D gl=enabled
-D egl=enabled
-D plain-gl=enabled
-D gl-x11=disabled
-D vulkan=enabled
-D cuda-hwaccel=disabled
-D vaapi=enabled
-D vdpau=disabled
)
meson setup build "${meson_args[@]}"
meson compile -C build
}
src_install() {
meson install -C build --destdir "$pkgdir"
cp -r TOOLS/lua "${pkgdir}/usr/share/${pkgname}"
mv -v "${pkgdir}"/usr/share/doc/${pkgname}{,-${pkgver}}
}
# vim:ft=sh syn=sh et sw=2:
+5
View File
@@ -34,18 +34,21 @@ sources=("${pkgname}-${pkgver}.tar.bz2"
"${pkgname}-1.4.7-0001-don-t-include-standard-C-headers-inside-of-extern-C.patch.xz"
"99-pipewire-default-hook.conf"
"acct-group-pipewire.conf"
"gentoo-sound-server-enable-audio-bluetooth.conf"
${_patches[@]}
)
urls=("https://gitlab.freedesktop.org/${pkgname}/${pkgname}/-/archive/${pkgver}/${sources[0]}"
"https://dev.gentoo.org/~sam/distfiles/media-video/${pkgname}/${sources[1]}"
"99-pipewire-default-hook.conf"
"acct-group-pipewire.conf"
"gentoo-sound-server-enable-audio-bluetooth.conf"
"${_patches[@]}"
)
sha512sums=("369054d920133904a8df709b1be05f9ef0e7e99e1ae10e1d200315ce1200e20d5e20a91f40dd17dd3177eef59de7d47dfdd6161ec6f057b78140690fcfcc1c2e"
"fbd9644a5df81ee4bc9687f6a8b69a0bf12deef43d749c9c5cbb976f461771deeae4bd13340a6acaffae4b0187221cf734be2b3b62408a4ce79d70575a7e664b"
"4e512c62b7627fbe9e48afbbf171bd2b8d4fb8b231492cb1ea2d90ac474212c25e0f8ba3389b1df1108a46f243f2e1f3a3eaf2d147a7968cec82a8a49f5fd1b7"
"65901c2bef4c769757631487231d43d4bc584c9202d280179696736e4985b195f14ab5a935d59d36f67cfa094e6749ac1f1d1aa2e9943ca746415eb1ff550b69"
"fede2c9dc6256894aa29cf72ede8ba42874cf0706d81031d724ca5b43fa424d09009ec6eb685737623f3c5eadb9b095060b0ce48b7325d68d4b07225b07aa2fe"
"${_patch_sums[@]}"
)
@@ -157,6 +160,8 @@ src_install() {
ln -sv ../../../usr/share/alsa/alsa.conf.d/50-pipewire.conf "${pkgdir}"/etc/alsa/conf.d/50-pipewire.conf
ln -sv ../../../usr/share/alsa/alsa.conf.d/99-pipewire-default-hook.conf "${pkgdir}"/etc/alsa/conf.d/99-pipewire-default-hook.conf
install -vDm644 "${filedir}/gentoo-sound-server-enable-audio-bluetooth.conf" -t "${pkgdir}/etc/wireplumber/wireplumber.conf.d"
install -vDm644 "${filedir}/acct-group-pipewire.conf" -t "${pkgdir}/usr/lib/sysusers.d/"
}
@@ -0,0 +1,6 @@
wireplumber.profiles = {
main = {
hardware.audio = required
hardware.bluetooth = required
}
}
+36
View File
@@ -0,0 +1,36 @@
pkgname=cyme
pkgver=2.2.10
pkgdesc="List system USB buses and devices; a modern cross-platform \`lsusb\`"
homepage="https://github.com/tuna-f1sh/cyme/"
license=("GPL-3+")
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/tuna-f1sh/cyme/archive/v${pkgver}.tar.gz")
sha512sums=("6a122be9a0bdbbc27fb44406b6ee1123215ef93be9926f6e3b939f0836ec96f46f709d46483b936291dc1730af5468b61eb2597f640d8cc7aac451791949efc4")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
cargo fetch --locked --target "$(rustc --print host-tuple)"
}
src_build() {
cargo build --frozen --release --all-features
}
src_check() {
cargo test --frozen
}
src_install() {
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "doc"
install -Dm644 "${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
install -Dm644 "${pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
install -Dm644 "${pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
install -Dm644 "_${pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
}
# vim:ft=sh syn=sh et sw=2:
+28
View File
@@ -0,0 +1,28 @@
pkgname=lshw
pkgver=02.20.2b
_ver=B.02.20
pkgdesc="Hardware Lister"
homepage="https://www.ezix.org/project/wiki/HardwareLiSter"
license=("GPL-2")
depends=(hwdata)
_patches=("lshw-02.19.2b-respect-LDFLAGS.patch")
sources=("${pkgname}-${_ver}.tar.gz")
urls=("https://www.ezix.org/software/files/${sources[0]}")
sha512sums=("afc5d57f4b7c49d8e1934a3df623657882cc1325268c8c024dc0fa25495edd3ce7fdadb9c83ac6e5d3e723bc08d6175162d4d879ced09f76ad145ff42b38d3f0")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
for _patch in ${_patches[@]}; do
patch -p1 -i ${filedir}/${_patch}
done
}
src_build() {
make VERSION=${_ver} SQLITE=0 SBINDIR=/usr/bin
}
src_install() {
make DESTDIR="$pkgdir"/ SBINDIR=/usr/bin install
}
# vim:ft=sh syn=sh et sw=2:
@@ -0,0 +1,33 @@
diff --git a/src/Makefile b/src/Makefile
index 7ae8218..5c990b0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -30,7 +30,7 @@ endif
ifeq ($(ZLIB), 1)
CXXFLAGS+= -DZLIB $(shell pkg-config --cflags zlib)
endif
-LDFLAGS+=-L./core/ -g
+LIBS+=-L./core/
ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
LDFLAGS+= -Wl,--as-needed
endif
@@ -44,7 +44,6 @@ ifeq ($(ZLIB), 1)
endif
export CXXFLAGS
-export LIBS
export LDFLAGS
ifeq ($(ZLIB), 1)
diff --git a/src/gui/Makefile b/src/gui/Makefile
index 63c4ff5..7946736 100644
--- a/src/gui/Makefile
+++ b/src/gui/Makefile
@@ -18,7 +18,6 @@ LIBS+=-L../core -llshw -lresolv $(GTKLIBS)
ifeq ($(SQLITE), 1)
LIBS+= $(shell pkg-config --libs sqlite3)
endif
-LDFLAGS=
ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
LDFLAGS+= -Wl,--as-needed
endif