Skip to content

Commit

Permalink
Standardized PKGBUILDs, final version (for now)
Browse files Browse the repository at this point in the history
Signed-off-by: Kwpolska <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 27, 2013
1 parent 8331e3d commit a8f3b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions PKGBUILD
@@ -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.'
Expand All @@ -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"
}
Expand Down
3 changes: 2 additions & 1 deletion PKGBUILD-git
@@ -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.'
Expand Down Expand Up @@ -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.