Created
February 11, 2019 01:27
-
-
Save LinuxPhreak/1951bfa7b0b453983f2755de847f93e7 to your computer and use it in GitHub Desktop.
problem with PKGBUILD Script
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
# Maintainer: Ben P. Dorsi-Todaro <ben@bigbenshosting.com> | |
#I get the following errors when building | |
#==> ERROR: pkgver is not allowed to be empty. | |
#==> ERROR: pkgver() generated an invalid version: | |
_pkgbasename=username | |
pkgname=$_pkgbasename | |
pkgrel=1 | |
pkgver=1.0.0 | |
pkgdesc="Get Username information" | |
arch=('any') | |
url="https://linuxphreak.github.io/username" | |
license=('GPL') | |
depends=('python' 'python-requests') | |
source=(git+https://github.com/LinuxPhreak/username) | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$srcdir/$_pkgbasename" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$srcdir/$_pkgbasename" | |
python setup.py bdist | |
} | |
package() { | |
_pkg=$(ls "$srcdir/$_pkgbasename/dist/") | |
tar -xC "$pkgdir/" -f "$srcdir/$_pkgbasename/dist/$_pkg" | |
mkdir -p "$pkgdir/usr/bin" | |
_python=$(ls "$pkgdir/usr/lib/") | |
chmod +x "$pkgdir/usr/lib/$_python/site-packages/$_pkgbasename/$_pkgbasename.py" | |
ln -s "/usr/lib/$_python/site-packages/$_pkgbasename/$_pkgbasename.py" \ | |
"$pkgdir/usr/bin/pipman" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See LinuxPhreak/username#1