diff options
author | Chau Duong | 2023-09-10 02:37:36 +0700 |
---|---|---|
committer | Chau Duong | 2023-09-10 02:40:42 +0700 |
commit | e717386c510b0af329be9011efffed2bdf14bea1 (patch) | |
tree | ba3622577924d9720372428bf63ab72e9d1ec1b9 | |
download | aur-e717386c510b0af329be9011efffed2bdf14bea1.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 29 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..959e83ccdb64 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = mdformat-admon-git + pkgdesc = An mdformat plugin for admonitions. + pkgver = 1.0.2 + pkgrel = 1 + url = https://github.com/KyleKing/mdformat-admon + arch = any + license = MIT + makedepends = python-pip + makedepends = python-build + makedepends = python-wheel + makedepends = python-flit + makedepends = python-installer + depends = mdformat + depends = python-mdit_py_plugins + source = mdformat-admon::git+https://github.com/KyleKing/mdformat-admon.git + sha256sums = SKIP + +pkgname = mdformat-admon-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..71ee1ba8351a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/ +pkg/ +mdformat-admon/ +*.pkg.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3ee97c116552 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Chau Duong <duongdominhchau@gmail.com> +_pkgname=mdformat-admon +pkgname="${_pkgname}-git" +pkgver=1.0.2 +pkgrel=1 +pkgdesc="An mdformat plugin for admonitions." +arch=(any) +url="https://github.com/KyleKing/mdformat-admon" +license=('MIT') +depends=(mdformat python-mdit_py_plugins) +makedepends=( + python-pip + python-build + python-wheel + python-flit + python-installer +) +source=("${_pkgname}::git+https://github.com/KyleKing/mdformat-admon.git") +sha256sums=(SKIP) + +build() { + cd "$_pkgname" + python -m build --wheel --no-isolation +} + +package() { + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl +} |