generated from ouuan/AUR-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pacvis-git: bump to 0.2.7.r12.g34f7494-2
- Loading branch information
1 parent
27c1801
commit 8fc2baf
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Maintainer: Jiachen Yang <farseerfc@gmail.com> | ||
|
||
pkgname=pacvis-git | ||
_pkgname=pacvis | ||
pkgver=0.2.7.r12.g34f7494 | ||
pkgrel=2 | ||
pkgdesc="Visualize pacman local database using Vis.js, inspired by pacgraph" | ||
arch=('any') | ||
url="https://github.com/farseerfc/pacvis" | ||
license=('MIT') | ||
depends=('python-tornado' 'pyalpm' 'python-setuptools' 'systemd') | ||
makedepends=('git' 'python-build' 'python-installer' 'python-wheel') | ||
source=("git+https://github.com/farseerfc/pacvis.git") | ||
conflicts=("pacvis") | ||
sha512sums=('SKIP') | ||
|
||
pkgver() { | ||
cd "$srcdir/$_pkgname" | ||
( set -o pipefail | ||
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || | ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
) | ||
} | ||
|
||
build () { | ||
cd "$srcdir/$_pkgname" | ||
python -m build --wheel --no-isolation | ||
} | ||
|
||
package () { | ||
cd "$srcdir/$_pkgname" | ||
python -m installer --destdir="$pkgdir" dist/*.whl | ||
install -D -m644 "pacvis@.service" "${pkgdir}/usr/lib/systemd/system/pacvis@.service" | ||
} | ||
|
||
# vim:set ts=2 sw=2 et: |