Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
new package: synaptic (termux#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisus7u7 authored Apr 7, 2022
1 parent 72c7cda commit 9accf88
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/synaptic/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
TERMUX_PKG_HOMEPAGE=https://www.nongnu.org/synaptic/
TERMUX_PKG_DESCRIPTION="Synaptic is a graphical package management tool based on GTK+ and APT."
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=0.90.1
_COMMIT=a85c743e10e39a43737d5f8a0f0cc4ea755eb545
TERMUX_PKG_SRCURL=https://github.com/mvo5/synaptic/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=a500cfeea6c4ec4463b42495cba224b9548acbd557e9da695730acf7e49e0798
TERMUX_PKG_DEPENDS="apt, dpkg, gtk3, atk, libvte, hicolor-icon-theme"
TERMUX_PKG_RECOMMENDS="netsurf"
TERMUX_PKG_BUILD_IN_SRC=true

termux_step_pre_configure(){
NOCONFIGURE=1 ./autogen.sh
}


termux_step_post_make_install(){
install -Dm700 -t ${TERMUX_PREFIX}/bin ./gtk/synaptic
}
38 changes: 38 additions & 0 deletions packages/synaptic/no_pthread.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index ed83daa..6100cf9 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -23,7 +23,6 @@ synaptic_LDADD = \
@GTK_LIBS@ \
@VTE_LIBS@ @LP_LIBS@\
-lutil \
- -lpthread \
$(LIBEPT_LIBS)

synaptic_SOURCES= \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4888444..b382f7a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -8,7 +8,7 @@ LDADD = \
${top_builddir}/common/libsynaptic.a\
-lapt-pkg -lX11 @RPM_LIBS@ @DEB_LIBS@ \
@GTK_LIBS@ @VTE_LIBS@ @LP_LIBS@\
- -lpthread $(LIBEPT_LIBS)
+ $(LIBEPT_LIBS)

test_rpackage_SOURCES= test_rpackage.cc

diff --git a/wings/Makefile.am b/wings/Makefile.am
index f59034f..76592bf 100644
--- a/wings/Makefile.am
+++ b/wings/Makefile.am
@@ -7,7 +7,7 @@ sbin_PROGRAMS=wsynaptic
wsynaptic_LDADD =-lExtraWINGs @WINGS_LIBS@ \
${top_builddir}/common/libsynaptic.a\
-lapt-pkg @RPM_LIBS@ @DEB_LIBS@\
- -lpthread -L/usr/X11R6/lib $(LIBTAGCOLL_LIBS)
+ -L/usr/X11R6/lib $(LIBTAGCOLL_LIBS)



Loading

0 comments on commit 9accf88

Please sign in to comment.