diff options
author | Freed-Wu | 2022-03-19 19:29:04 +0800 |
---|---|---|
committer | Freed-Wu | 2022-03-19 19:29:04 +0800 |
commit | 3d2aa61fc909e5ee2825a1061f7ad18c9b39d519 (patch) | |
tree | 40e6a610dc0762aef92bffd63c803016595ebbef | |
download | aur-3d2aa61fc909e5ee2825a1061f7ad18c9b39d519.tar.gz |
:tada: Initial
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..80dea2d6bb9a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-emoji-fzf + pkgdesc = 🕵emoji picker that pairs nicely with fzf --preview + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/noahp/emoji-fzf + arch = any + license = GPL + makedepends = python-pip + depends = fzf + provides = emoji-fzf-0.1.0 + conflicts = emoji-fzf-0.1.0 + source = emoji-fzf-0.1.0::https://files.pythonhosted.org/packages/source/e/emoji-fzf/emoji_fzf-0.1.0-py2.py3-none-any.whl + sha256sums = SKIP + +pkgname = python-emoji-fzf diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..64669b51ca07 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg/ +/src/ +*.tar.* +/emoji-fzf* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8142316d7976 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Wu Zhenyu <wuzy01@qq.com> +# https://aur.archlinux.org/packages/updaurpkg-git +# $ updaurpkg . +_repo=noahp/emoji-fzf +_source_type=github-tags +_upstreamver='0.6.0' +_pkgname=$(tr A-Z a-z <<< ${_repo##*/}) + +pkgname=python-$_pkgname +pkgver=${_upstreamver##v} +pkgrel=1 +pkgdesc="$(gh repo view $_repo|rg 'description:\t'|cut -f2)" +arch=(any) +url=https://github.com/$_repo +depends=(fzf) +makedepends=(python-installer) +license=(MIT) +provides=("$_pkgname-$pkgver") +conflicts=("$_pkgname-$pkgver") +_py=py2.py3 +source=("$_pkgname-$pkgver::https://files.pythonhosted.org/packages/$_py/${_pkgname:0:1}/$_pkgname/${_pkgname//-/_}-$pkgver-$_py-none-any.whl") +sha256sums=(SKIP) + +package() { + cd "$srcdir" + cp -L "$_pkgname-$pkgver" "${_pkgname//-/_}-$pkgver-$_py-none-any.whl" + python -m installer --destdir="$pkgdir" *.whl || return 1 +} |