From 9da2da2bf82f649327df68f2b06650f38f37e367 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Fri, 21 Oct 2022 23:45:43 -0700 Subject: [PATCH] initial commit --- .SRCINFO | 14 ++++++++++++++ .gitignore | 3 +++ PKGBUILD | 25 +++++++++++++++++++++++++ 3 files changed, 42 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..aaafc1c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-rofi-git + pkgdesc = Python wrapper for rofi + pkgver = 1.1.0 + pkgrel = 1 + url = https://gitea.suda.codes/sudacode/python-rofi.git + arch = any + license = MIT + makedepends = python-wheel + makedepends = git + provides = python-rofi + source = git+https://gitea.suda.codes/sudacode/python-rofi.git + sha256sums = SKIP + +pkgname = python-rofi-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d3e1e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg +src +python-rofi* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ba5f7ad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Sudacode +_pkgname=python-rofi +pkgname="${_pkgname}-git" +_pkgver=1.1.0 +pkgver=${_pkgver//-/_} +pkgrel=1 +pkgdesc='Python wrapper for rofi' +license=('MIT') +makedepends=('python-wheel') +arch=('any') +url="https://gitea.suda.codes/sudacode/python-rofi.git" +provides=('python-rofi') +makedepends=('python-wheel' 'git') +source=("git+${url}") + +build() { + cd "$srcdir/${_pkgname}" + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgdir" + python -m installer --destdir="$pkgdir" "$srcdir/$_pkgname"/dist/*.whl +} +sha256sums=('SKIP')