new bblfs: sys-apps/lshw-02.20.2b
This commit is contained in:
28
sys-apps/lshw-02.20.2b.PKGBUILD
Normal file
28
sys-apps/lshw-02.20.2b.PKGBUILD
Normal 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:
|
||||||
33
sys-apps/lshw/lshw-02.19.2b-respect-LDFLAGS.patch
Normal file
33
sys-apps/lshw/lshw-02.19.2b-respect-LDFLAGS.patch
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user