This commit is contained in:
qwjyh 2024-06-07 18:54:54 +09:00
commit 951ad4b1ab
3 changed files with 57 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -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

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: qwjyh <urataw421 at gmail dot com>
# 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: