Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
# Maintainer: ArchStrike <team@archstrike.org>
buildarch=1
pkgname=pipal-git
pkgver=20210814.r137
pkgrel=1
groups=('archstrike' 'archstrike-analysis')
arch=('any')
pkgdesc="THE password analyzer"
url="https://github.com/digininja/pipal"
license=('CCPL')
depends=('ruby')
makedepends=('git')
source=("$pkgname::git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
printf "%s.r%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)"
}
package() {
cd $pkgname
install -dm755 $pkgdir/usr/bin/
install -dm755 $pkgdir/usr/share/$pkgname
cp -a --no-preserve=ownership ./* $pkgdir/usr/share/$pkgname
cat > $pkgdir/usr/bin/pipal << EOF
#!/usr/bin/env bash
cd /usr/share/$pkgname
ruby pipal.rb \$@
EOF
chmod 755 $pkgdir/usr/bin/pipal
}