https://foicica.com/textadept/
A fast, minimalist, and remarkably extensible cross-platform text editor
---
testing/textadept/10-use-curl.patch | 56 +++++++++++++++++++++++++++++
testing/textadept/APKBUILD | 45 +++++++++++++++++++++++
2 files changed, 101 insertions(+)
create mode 100644 testing/textadept/10-use-curl.patch
create mode 100644 testing/textadept/APKBUILD
diff --git a/testing/textadept/10-use-curl.patch b/testing/textadept/10-use-curl.patch
new file mode 100644
index 0000000000..2d2c897bd8
--- /dev/null
+++ b/testing/textadept/10-use-curl.patch
@@ -0,0 +1,56 @@
+--- src/Makefile
++++ src.patched/Makefile
+@@ -358,9 +358,9 @@
+
+ ifndef NIGHTLY
+ #gtdialog_url = http://foicica.com/gtdialog/download/$@
+- gtdialog_url = http://foicica.com/hg/gtdialog/archive/$@
++ gtdialog_url = https://foicica.com/hg/gtdialog/archive/$@
+ else
+- gtdialog_url = http://foicica.com/hg/gtdialog/archive/tip.zip
++ gtdialog_url = https://foicica.com/hg/gtdialog/archive/tip.zip
+ endif
+
+ scintilla_zip = 542782a4df7d.zip
+@@ -377,7 +377,7 @@
+ bombay_zip = bombay.zip
+ cloc = cloc-1.60.pl
+
+-$(scintilla_zip): ; wget http://foicica.com/hg/scintilla/archive/$@ -O $@
++$(scintilla_zip): ; curl -O https://foicica.com/hg/scintilla/archive/$@
+ scintilla: scintilla.patch | $(scintilla_zip)
+ if [ -d $@/.hg ]; then \
+ hg --cwd $@ update -C LongTerm3; \
+@@ -400,7 +400,7 @@
+ lua/src/lib/lfs: | $(lfs_zip)
+ if [ -d $@ ]; then rm -r $@; fi
+ mkdir -p $@ && unzip -d $@ $| && mv $@/*/src/*.c $@/*/src/*.h $(dir $@)
+-$(gtdialog_zip): ; wget $(gtdialog_url) -O $@
++$(gtdialog_zip): ; curl -O $(gtdialog_url)
+ gtdialog: | $(gtdialog_zip) ; mkdir $@ && unzip -d $@ $| && mv $@/*/* $@
+ $(cdk_tgz): ; wget http://invisible-mirror.net/archives/cdk/$@
+ cdk: cdk.patch | $(cdk_tgz)
+@@ -413,9 +413,9 @@
+ if [ -d $@ ]; then rm -r $@; fi
+ mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@ && chmod +w $@/termkey.h
+ patch -d $@ -N -p1 < $<
+-$(win32gtk_zip): ; wget http://foicica.com/textadept/download/$@
++$(win32gtk_zip): ; curl -O https://foicica.com/textadept/download/$@
+ win32gtk: | $(win32gtk_zip) ; unzip $|
+-$(win32curses_zip): ; wget http://foicica.com/textadept/download/$@
++$(win32curses_zip): ; curl -O https://foicica.com/textadept/download/$@
+ $(pdcurses_zip): ; wget http://prdownloads.sourceforge.net/pdcurses/$@
+ win32curses: | $(win32curses_zip) $(pdcurses_zip)
+ unzip $(win32curses_zip)
+@@ -424,9 +424,9 @@
+ cd $@/src/win32 && $(MAKE) -f gccwin32.mak CC="$(CROSS)$(CC) $(CFLAGS)" \
+ LIBEXE=$(CROSS)ar LINK="$(CROSS)$(CC) $(CFLAGS)" WIDE=Y UTF8=Y
+ cp $@/src/win32/pdcurses.a $@/lib/
+-$(gtkosx_tgz): ; wget http://foicica.com/textadept/download/$@
++$(gtkosx_tgz): ; curl -O https://foicica.com/textadept/download/$@
+ gtkosx: | $(gtkosx_tgz) ; mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@
+-$(bombay_zip): ; wget http://foicica.com/hg/bombay/archive/tip.zip -O $@
++$(bombay_zip): ; curl -o $@ https://foicica.com/hg/bombay/archive/tip.zip
+ ../doc/bombay: | $(bombay_zip)
+ mkdir $(notdir $@) && unzip -d $(notdir $@) $| && \
+ mv $(notdir $@)/*/* $(dir $@)
diff --git a/testing/textadept/APKBUILD b/testing/textadept/APKBUILD
new file mode 100644
index 0000000000..2e1ddc2d13
--- /dev/null
+++ b/testing/textadept/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Bradley Saulteaux <bradsoto@gmail.com>
+pkgname=textadept
+pkgver=10.2
+_pkgver=9418438a2ac4
+pkgrel=0
+pkgdesc="A fast, minimalist, and remarkably extensible cross-platform text editor"
+url="https://foicica.com/textadept/"
+arch="all"
+license="MIT"
+depends="gtk+2.0"
+makedepends="curl ncurses-dev gtk+2.0-dev"
+install=""
+options="!check"
+subpackages="${pkgname}-curses"
+source="${pkgname}-${pkgver}.zip::https://foicica.com/hg/${pkgname}/archive/${_pkgver}.zip
+ 10-use-curl.patch"
+builddir="$srcdir/${pkgname}-${_pkgver}/src"
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ make deps
+}
+
+build() {
+ cd "$builddir"
+ make
+ make ${pkgname}-curses
+}
+
+curses() {
+ depends="ncurses-libs"
+ mkdir -p "$subpkgdir"/usr/bin
+ mkdir -p "$subpkgdir"/usr/share/applications/
+ mv "$srcdir/${pkgname}-${_pkgver}/${pkgname}-curses" "$subpkgdir"/usr/bin/
+ mv "$builddir/${subpkgname}.desktop" "$subpkgdir"/usr/share/applications/
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" PREFIX="/usr" install
+}
+
+sha512sums="739c5038afcde6e42c60c18bd000518236071adfc34989f0c06283c71a68b5a62262e364b5e533aeab636ee25e2af1f25ab6df7a0e16a365f15a37d46cc982c3 textadept-10.2.zip
+3ee92c33fbeef562d9c4e2aba8b9eff585fa91839b9939e95d413811fd05393b049add4e110ab94f63e64382c5323217f87081fc1860700d011b24977ad058a0 10-use-curl.patch"
--
2.20.1
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---