mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
lssecret
This commit is contained in:
parent
9d69f16c44
commit
bdbbe732ef
4 changed files with 69 additions and 0 deletions
1
app-crypt/lssecret/Manifest
Normal file
1
app-crypt/lssecret/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST lssecret.gh.tar.gz 2744 BLAKE2B 635d0802d0a6ede4e4df44eeb8e6b2af88aab9b7c92514231f8a1188ec9ce7871349304ae7f0307a413bbde331d64368dca19e5919dbcb05fd55725b0610d75b SHA512 46a9b282802421968b063dd806915270c3fedd0803788f584a693ba9e24e8c8cbdbcf596818481b6756a4bdd82a61ff694804b6a48844fa1a07bd63bf8483f8e
|
||||
27
app-crypt/lssecret/files/lssecret-makefile-changes.patch
Normal file
27
app-crypt/lssecret/files/lssecret-makefile-changes.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index bfff71e..072cbc6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,12 +1,18 @@
|
||||
-LIBSECRET_FLAGS := $(shell pkg-config --cflags --libs libsecret-1)
|
||||
+LIBSECRET_CFLAGS := $(shell pkg-config --cflags libsecret-1)
|
||||
+LIBSECRET_LIBS := $(shell pkg-config --libs libsecret-1)
|
||||
+CXXFLAGS := -O3
|
||||
+LDFLAGS :=
|
||||
|
||||
all: lssecret
|
||||
|
||||
-lssecret: lssecret.cpp
|
||||
- $(CXX) -O3 -o $@ $^ $(LIBSECRET_FLAGS)
|
||||
+lssecret: lssecret.o
|
||||
+ $(CXX) -o $@ $(LDFLAGS) $^ $(LIBSECRET_LIBS)
|
||||
+
|
||||
+lssecret.o: lssecret.cpp
|
||||
+ $(CXX) -c -o $@ $(CXXFLAGS) $^ $(LIBSECRET_CFLAGS)
|
||||
|
||||
install: lssecret
|
||||
- install -Dsm777 $< $(DESTDIR)/bin/$<
|
||||
+ install -Dm0755 $< $(DESTDIR)/bin/$<
|
||||
|
||||
clean:
|
||||
rm -f lssecret
|
||||
30
app-crypt/lssecret/lssecret-20230106.ebuild
Normal file
30
app-crypt/lssecret/lssecret-20230106.ebuild
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
HASH_COMMIT="7f63780a8621305a8cc5e0455a603654e472fd30"
|
||||
|
||||
DESCRIPTION="List all secret items using libsecret (e.g. GNOME Keyring)."
|
||||
HOMEPAGE="https://github.com/gileshuang/lssecret"
|
||||
SRC_URI="https://github.com/gileshuang/lssecret/archive/${HASH_COMMIT}.tar.gz -> ${PN}.gh.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
DEPEND="app-crypt/libsecret
|
||||
dev-libs/glib"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-makefile-changes.patch" )
|
||||
|
||||
src_compile() {
|
||||
emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
#src_install() {
|
||||
# emake DESTDIR="${D}/usr" install
|
||||
# einstalldocs
|
||||
#}
|
||||
11
app-crypt/lssecret/metadata.xml
Normal file
11
app-crypt/lssecret/metadata.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">gileshuang/lssecret</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
Reference in a new issue