summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6fec4979bc7a036cff71df92e6a013092241026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='wimpy'
pkgname="python-${_pkgname}"
pkgver=0.6
pkgrel=2
pkgdesc='Anti-copy-pasta'
arch=('any')
url='https://github.com/wimglenn/wimpy'
_url_pypi='https://pypi.org/project/wimpy'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('014d21a31980eab48b92c4210e9fdba643b79f7081c64ea9bc97f2be9db9bd58')

build() {
  cd "${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: ts=2 sw=2 et: