Skip to content

Commit

Permalink
PKGBUILD file in development
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Oct 23, 2024
1 parent 38f09c8 commit 647d663
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Maintainer: Jasur Sadikov <[email protected]>
pkgname=mud
pkgver=v1.0.2
pkgrel=1
pkgdesc="Multi repository git utility. Manage multiple git-repositories simultaneously."
arch=('any')
url="https://github.com/jasursadikov/mud"
license=('MIT')
depends=('python' 'python-prettytable')
makedepends=('python-build' 'python-installer' 'git')
source=("${_pkgname}::git+https://github.com/jasursadikov/mud.git")
md5sums=('SKIP')

pkgver() {
cd "$srcdir/$_pkgname"
_ver=$(grep '^version =' pyproject.toml | cut -d '"' -f2)
_rev=$(git rev-list --count HEAD)
_commit=$(git rev-parse --short HEAD)
echo "${_ver}.r${_rev}.g${_commit}"
}

build() {
cd "$srcdir/$_pkgname"
python -m build --wheel --no-isolation
}

package() {
cd "$srcdir/$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit 647d663

Please sign in to comment.