Skip to content

Instantly share code, notes, and snippets.

@alex4o
Created September 4, 2016 08:37
Show Gist options
  • Save alex4o/405169d7edf01b8e07df5faf78383e0d to your computer and use it in GitHub Desktop.
Save alex4o/405169d7edf01b8e07df5faf78383e0d to your computer and use it in GitHub Desktop.
# Maintainer: Erhan SAHIN < erhan@ssahin.net >
pkgname=python2-semantic-version
pkgver=2.5.0
pkgrel=1
pkgdesc="Semantic version comparison for Python"
arch=('any')
url="https://github.com/rbarrois/python-semanticversion"
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
options=(!emptydirs)
source=("https://pypi.python.org/packages/source/s/semantic_version/semantic_version-$pkgver.tar.gz")
md5sums=('9a3f8e3ca00dcd2da16e30d55a4d4d99')
package() {
cd "$srcdir/semantic_version-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 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