Last active
December 19, 2019 13:25
-
-
Save demogorgonz/cb004482521a5afd6ac44c04fedae1d3 to your computer and use it in GitHub Desktop.
BlackArch PKGBUILD template
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
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | |
# See COPYING for license details. | |
pkgname= | |
pkgver=1 | |
pkgrel=1 | |
groups=('blackarch' 'blackarch-exploitation') | |
pkgdesc='' | |
url='https://github.com/' | |
arch=('any') | |
license=('') | |
depends=('') | |
makedepends=('') | |
source=("$pkgname::git+https://github.com/user/.git") | |
sha512sums=('SKIP') | |
pkgver() { | |
cd $pkgname | |
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) | |
} | |
package() { | |
cd $pkgname | |
install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname" | |
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md | |
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment