diff options
author | Antoine Viallon | 2020-06-06 01:32:49 +0200 |
---|---|---|
committer | Antoine Viallon | 2020-06-06 01:32:49 +0200 |
commit | bc355902ddba0a10750e48efc5c5f08fb3b77b96 (patch) | |
tree | 28d5695a4ee4c575523279aad31baa2401b6ec56 | |
download | aur-bc355902ddba0a10750e48efc5c5f08fb3b77b96.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | 69-libticables.rules | 18 | ||||
-rw-r--r-- | PKGBUILD | 82 | ||||
-rw-r--r-- | libticables.install | 13 |
4 files changed, 147 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d5fb0360457c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = tilibs-git + pkgdesc = Various TI libs required for TILP + pkgver = 1.18.r41.g7be38a45 + pkgrel = 1 + url = http://lpg.ticalc.org/prj_tilp/ + arch = i686 + arch = x86_64 + license = GPL2 + depends = glib2 + options = !libtool + source = tilibs-git::git+https://github.com/debrouxl/tilibs.git + source = libticables.install + source = 69-libticables.rules + md5sums = SKIP + md5sums = 1831838d99949e3d378a07d8608b2bb4 + md5sums = 2e38fe89764f129c567b06afbbdfdcd0 + +pkgname = libticonv-git + provides = libticonv + conflicts = libticonv + +pkgname = libticables-git + install = libticables.install + provides = libticables + conflicts = libticables + +pkgname = libticalcs-git + provides = libticalcs + conflicts = libticalcs + +pkgname = libtifiles-git + provides = libtifiles + conflicts = libtifiles + diff --git a/69-libticables.rules b/69-libticables.rules new file mode 100644 index 000000000000..edf812c30ea8 --- /dev/null +++ b/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/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..61e6eb7b7ddf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,82 @@ +# Maintainer: Antoine Viallon <antoine at lesviallon dot fr> + +pkgbase=tilibs-git +pkgname=(libticonv-git libticables-git libticalcs-git libtifiles-git) +pkgver=1.18.r41.g7be38a45 +pkgrel=1 +pkgdesc="Various TI libs required for TILP" +arch=('i686' 'x86_64') +url="http://lpg.ticalc.org/prj_tilp/" +license=('GPL2') +depends=('glib2') +options=('!libtool') +source=("$pkgbase::git+https://github.com/debrouxl/tilibs.git" + "libticables.install" + "69-libticables.rules") +md5sums=('SKIP' + '1831838d99949e3d378a07d8608b2bb4' + '2e38fe89764f129c567b06afbbdfdcd0') + +pkgver() { + cd "$pkgbase" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + for _pkgname in ${pkgname[@]}; do + echo "Building for ${_pkgname}..." + subpkg=${_pkgname%-*} + cd "${srcdir}/${pkgbase}/${subpkg}/trunk" + + configure_flags="" + case $subpkg in + libticonv) + configure_flags+="--enable-iconv " ;; + libticables) + configure_flags+="--enable-libusb10 " ;; + *) + echo "Standard package" ;; + esac + + autoreconf -fi + ./configure --prefix=/usr $configure_flags + make + done +} + +_package() { + subpkg=${pkgname%-*} + cd "${srcdir}/${pkgbase}/${subpkg}/trunk" + + make install DESTDIR="${pkgdir}" +} + + +#install_cables-git="libticables.install" +package_libticables-git() { + provides=('libticables') + conflicts=('libticables') + #cd "${srcdir}/${pkgbase}/${pkgname}/trunk" + #make install DESTDIR="${pkgdir}" + _package + + install="libticables.install" + + install -Dm644 "${srcdir}/69-libticables.rules" "${pkgdir}/usr/lib/udev/rules.d/69-libticables.rules" +} + +package_libticonv-git() { + provides=(libticonv) + conflicts=(libticonv) + _package +} +package_libticalcs-git() { + provides=(libticalcs) + conflicts=(libticalcs) + _package +} +package_libtifiles-git() { + provides=(libtifiles) + conflicts=(libtifiles) + _package +} diff --git a/libticables.install b/libticables.install new file mode 100644 index 000000000000..eab1787b043d --- /dev/null +++ b/libticables.install @@ -0,0 +1,13 @@ +post_install() { + echo -n "Reloading udev rules..." + udevadm control --reload-rules + echo "done." +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |