Permalink
Browse files

Standardized PKGBUILDs, final version (for now)

Signed-off-by: Kwpolska <kwpolska@gmail.com>
  • Loading branch information...
1 parent 8331e3d commit a8f3b8490925c8d073bb5842c0b9138d370ebd6f @Kwpolska committed Jan 27, 2013
Showing with 5 additions and 3 deletions.
  1. +3 −2 PKGBUILD
  2. +2 −1 PKGBUILD-git
View
@@ -1,5 +1,6 @@
# Maintainer: Kwpolska <kwpolska@kwpolska.tk>
pkgname=trashman
+_pyname=trashman
pkgver=1.0.4
pkgrel=1
pkgdesc='A Python trash manager. Python 3 build.'
@@ -8,11 +9,11 @@ url='https://github.com/Kwpolska/trashman'
license=('BSD')
depends=('python')
options=(!emptydirs)
-source=("http://pypi.python.org/packages/source/t/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+source=("http://pypi.python.org/packages/source/$(echo ${_pyname} | cut -c1)/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('7ffe7357547132883db1da39ba0d5103')
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${_pyname}-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
View
@@ -1,5 +1,6 @@
# Maintainer: Kwpolska <kwpolska@kwpolska.tk>
pkgname=trashman-git
+_pyname=trashman
pkgver=20121007
pkgrel=1
pkgdesc='A Python trash manager. Python 3 build, version from git.'
@@ -34,7 +35,7 @@ package() {
cd "${srcdir}/${_gitname}-build"
python3 setup.py install --root="${pkgdir}/" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:

0 comments on commit a8f3b84

Please sign in to comment.