Subject: [PATCH v2 1/5] testing/libticables: new aport

From: Drew DeVault <[email-masked]>
Date: Sun, 06 Dec 2020 21:18:57 GMT

---
 testing/libticables/69-libticables.rules | 18 ++++++++++++++
 testing/libticables/APKBUILD             | 31 ++++++++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 testing/libticables/69-libticables.rules
 create mode 100644 testing/libticables/APKBUILD

diff --git a/testing/libticables/69-libticables.rules b/testing/libticables/69-libticables.rules
new file mode 100644
index 0000000000..edf812c30e
--- /dev/null
+++ b/testing/libticables/69-libticables.rules
@@ -0,0 +1,18 @@
+ACTION!="add", GOTO="libticables_end"
+
+# serial device (assume TI calculator)
+KERNEL=="ttyS[0-3]", ENV{ID_PDA}="1"
+# parallel device (assume TI calculator)
+SUBSYSTEM=="ppdev", ENV{ID_PDA}="1"
+# SilverLink
+SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e001", ENV{ID_PDA}="1"
+# TI-84+ DirectLink
+SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e003", ENV{ID_PDA}="1"
+# TI-89 Titanium DirectLink
+SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e004", ENV{ID_PDA}="1"
+# TI-84+ SE DirectLink
+SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e008", ENV{ID_PDA}="1"
+# TI-Nspire DirectLink
+SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e012", ENV{ID_PDA}="1"
+
+LABEL="libticables_end"
diff --git a/testing/libticables/APKBUILD b/testing/libticables/APKBUILD
new file mode 100644
index 0000000000..418d3bf64a
--- /dev/null
+++ b/testing/libticables/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=libticables
+pkgver=1.3.5
+pkgrel=0
+pkgdesc="Texas Instruments link cable library"
+url="http://lpg.ticalc.org/prj_tilp/"
+arch="all"
+license="GPL-2.0-only"
+makedepends="bzip2 libusb-dev libtool glib-dev autoconf automake"
+subpackages="$pkgname-dev"
+source="
+	$pkgname-$pkgver.tar.bz2::http://downloads.sourceforge.net/project/tilp/tilp2-linux/tilp2-1.18/${pkgname}2-$pkgver.tar.bz2
+	69-libticables.rules
+"
+options="!check" # No upstream tests
+builddir="$srcdir/${pkgname}2-$pkgver"
+
+build() {
+	autoreconf -if
+	./configure --prefix=/usr --enable-libusb10
+}
+
+package() {
+	make install DESTDIR="$pkgdir"
+	rm -rf "$pkgdir"/usr/share/locale
+	install -Dm644 "$srcdir/69-libticables.rules" \
+		"$pkgdir/usr/lib/udev/rules.d/69-libticables.rules"
+}
+
+sha512sums="171abdf41f496891c62da17a2b84d929ac32021b0f2abc0c37ed73ec93806d4a14df37a8ffbe2b0c172ff3461aa6c639fc1ba23aafb19e024b99448dd66c63bd  libticables-1.3.5.tar.bz2
+423e0fcf072e7f4460ca00dedcc8839c3e22515f353813a058324dff0624c1eebcbd2385ca425fad351262520a30309d6d2a3148e4c0a5ec326eddb1428dbe1c  69-libticables.rules"
-- 
2.29.2

---

From: Drew DeVault <[email-masked]>
Date: Sun, 06 Dec 2020 21:18:58 GMT

---
 testing/libticonv/APKBUILD | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 testing/libticonv/APKBUILD

diff --git a/testing/libticonv/APKBUILD b/testing/libticonv/APKBUILD
new file mode 100644
index 0000000000..19d21706eb
--- /dev/null
+++ b/testing/libticonv/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=libticonv
+pkgver=1.1.5
+pkgrel=0
+pkgdesc="Texas Instruments character set conversion library"
+url="http://lpg.ticalc.org/prj_tilp/"
+arch="all"
+license="GPL-2.0-only"
+makedepends="bzip2 glib-dev libtool autoconf automake"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.bz2::http://downloads.sourceforge.net/project/tilp/tilp2-linux/tilp2-1.18/$pkgname-$pkgver.tar.bz2"
+options="!check" # No upstream tests
+
+build() {
+	autoreconf -if
+	./configure --prefix=/usr --enable-iconv
+}
+
+package() {
+	make install DESTDIR="$pkgdir"
+	rm -rf "$pkgdir"/usr/share/locale
+}
+
+sha512sums="ea589344a656c5c7d28ed45e8da36bf7b746b7a82d77a257ddd305e2ebdc34f0ae14a6090e991f47ef7ad37cdc8d7182181c705fb0814e671ef764ca2a6dc2bf  libticonv-1.1.5.tar.bz2"
-- 
2.29.2