]> git.otsuka.systems Git - python-llm/commitdiff
Initial commit
authorMartin Harrigan <martinharrigan@gmail.com>
Wed, 7 Aug 2024 18:35:02 +0000 (19:35 +0100)
committerMartin Harrigan <martinharrigan@gmail.com>
Wed, 7 Aug 2024 18:41:03 +0000 (19:41 +0100)
.SRCINFO [new file with mode: 0644]
PKGBUILD [new file with mode: 0644]

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644 (file)
index 0000000..28189b0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-llm
+       pkgdesc = A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.
+       pkgver = 0.15
+       pkgrel = 1
+       url = https://github.com/simonw/llm
+       arch = any
+       license = Apache-2.0
+       depends = python
+       depends = python-setuptools
+       source = 0.15.tar.gz::https://github.com/simonw/llm/archive/0.15.tar.gz
+       sha256sums = 8efcf3704fd587ed865c2b8518d2d9fb9cf997487dbc75411ed75723a573b803
+
+pkgname = python-llm
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..98a97ad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Martin Harrigan <martinharrigan at gmail.com>
+pkgname='python-llm'
+pkgdesc='A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.'
+url='https://github.com/simonw/llm'
+pkgver='0.15'
+pkgrel='1'
+arch=('any')
+license=('Apache-2.0')
+depends=('python' 'python-setuptools')
+source=("${pkgver}.tar.gz::https://github.com/simonw/llm/archive/${pkgver}.tar.gz")
+sha256sums=('8efcf3704fd587ed865c2b8518d2d9fb9cf997487dbc75411ed75723a573b803')
+
+build() {
+    cd "${srcdir}/llm-${pkgver}"
+    python setup.py build
+}
+
+package() {
+    cd "${srcdir}/llm-${pkgver}"
+    python setup.py install --skip-build -O1 --root="${pkgdir}"
+    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}