diff options
author | Chau Duong | 2023-12-22 09:06:51 +0700 |
---|---|---|
committer | Chau Duong | 2023-12-22 09:06:51 +0700 |
commit | e3481d6a9355ed2d6332443ec7d1d84dacc57fa7 (patch) | |
tree | e79d9d6a136e972afb924cae9c2b8a75ee1bf8bd | |
download | aur-e3481d6a9355ed2d6332443ec7d1d84dacc57fa7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..379ef7f3ed09 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mdformat-mkdocs-git + pkgver = v1.1.0.r0.fb0132a + pkgrel = 1 + url = https://github.com/KyleKing/mdformat-mkdocs + arch = any + license = MIT + makedepends = python-pip + makedepends = python-build + makedepends = python-wheel + makedepends = python-flit + makedepends = python-installer + makedepends = python-poetry + depends = mdformat + provides = mdformat-mkdocs + conflicts = mdformat-mkdocs + source = mdformat-mkdocs::git+https://github.com/KyleKing/mdformat-mkdocs.git + sha256sums = SKIP + +pkgname = mdformat-mkdocs-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..26f91fefb012 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +mdformat-mkdocs/ +*.pkg.* +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d190de4467b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Chau Duong <duongdominhchau@gmail.com> +_pkgname=mdformat-mkdocs +pkgname="${_pkgname}-git" +pkgver=v1.1.0.r0.fb0132a +pkgrel=1 +pkgdesc="" +arch=(any) +url="https://github.com/KyleKing/mdformat-mkdocs" +license=('MIT') +depends=(mdformat) +makedepends=( + python-pip + python-build + python-wheel + python-flit + python-installer + python-poetry +) +source=("${_pkgname}::git+${url}.git") +conflicts=("$_pkgname") +provides=("$_pkgname") +sha256sums=(SKIP) + +pkgver() { + cd "$_pkgname" + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +build() { + cd "$_pkgname" + python -m build --wheel --no-isolation +} + +package() { + cd "$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl +} + |