aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-08 16:06:34 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-08 16:18:07 +0100
commit434d34138cdfe2db377efbdc2e6c8bb55d9e88a3 (patch)
treedec68366a892329fd1610e94f5a1f24456c97e3d /PKGBUILD
downloadcmake-common-434d34138cdfe2db377efbdc2e6c8bb55d9e88a3.tar.gz
cmake-common-434d34138cdfe2db377efbdc2e6c8bb55d9e88a3.zip
add AUR package files
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..2bead2b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Egor Tensin <Egor.Tensin@gmail.com>
+pkgname=cmake-common
+_name="${pkgname//-/_}"
+pkgver=3.4
+pkgrel=1
+pkgdesc='Various utilities to help develop C++/CMake projects'
+arch=(any)
+url='https://github.com/egor-tensin/cmake-common'
+license=(MIT)
+makedepends=(python-build python-installer python-wheel)
+depends=(python)
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$_name/$_name-$pkgver.tar.gz")
+md5sums=(SKIP)
+
+build() {
+ cd "$_name-$pkgver"
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}