Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghidriff: add package #4278

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
python-mdutils: add package
D3vil0p3r authored Oct 9, 2024
commit be535b2981faf1e80689af619ce7567e72dfd352
39 changes: 39 additions & 0 deletions packages/python-mdutils/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-mdutils
_pkgname=${pkgname#python-}
pkgver=v1.6.0.r4.geaa500d
pkgrel=1
pkgdesc='Set of basic tools that can help to create a markdown file.'
arch=('any')
url='https://github.com/didix21/mdutils'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("git+https://github.com/didix21/$_pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $_pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

build() {
cd $_pkgname

python setup.py build
}

package() {
cd $_pkgname

python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}