From 951ad4b1ab775d271608ce0ee00a71f8051d83e7 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 7 Jun 2024 18:54:54 +0900 Subject: [PATCH] v0.1.0 --- .SRCINFO | 17 +++++++++++++++++ .gitignore | 2 ++ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9a15f84 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-browser-history-merger + pkgdesc = Simple tool to merge browser histories into a single database + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/qwjyh/browser-history-merger + arch = x86_64 + arch = aarch64 + license = GPL-3.0-only + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python + provides = luax + source = https://github.com/qwjyh/browser-history-merger/archive/refs/tags/v0.1.0.tar.gz + sha256sums = 2133c771fc7347f4907a34f00c7815917f93f67f59233116c1141a17e27c25cd + +pkgname = python-browser-history-merger diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..241e560 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +* + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5a05e5b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: qwjyh + + +# TODO: Fix doc gen and test + +pkgname=python-browser-history-merger +_pkgname="${pkgname#python-}" +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Simple tool to merge browser histories into a single database" +depends=('python') +makedepends=('python-build' 'python-installer' 'python-wheel') +provides=('luax') +arch=('x86_64' 'aarch64') +url="https://github.com/qwjyh/browser-history-merger" +license=('GPL-3.0-only') +source=("https://github.com/qwjyh/browser-history-merger/archive/refs/tags/v0.1.0.tar.gz") +sha256sums=('2133c771fc7347f4907a34f00c7815917f93f67f59233116c1141a17e27c25cd') + +_distdir="$_pkgname" + +build() { + cd "$srcdir/$_distdir" + python -m build --wheel --no-isolation +} + +check() { + cd "$srcdir/$_distdir" + # TODO: Fails + # ninja test +} + +package() { + cd "$srcdir//$_distdir" + python -m installer --destdir="$pkgdir" dist/*.whl +} + +# vim: sw=2: