diff options
author | Carlos Aznarán Laos | 2022-06-10 14:27:16 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-06-10 14:27:16 -0500 |
commit | 80a9c2b003e0f72f1fb648e8a667b0314aa61568 (patch) | |
tree | 51cec0fceb2fcf634a34df407de65d6144408f28 /PKGBUILD | |
parent | 4560b4645f747c3a125d13276c23d5f959e236a8 (diff) | |
download | aur-python2-liblnk.tar.gz |
Bump version to 20210417
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 34 |
1 files changed, 16 insertions, 18 deletions
@@ -1,26 +1,24 @@ -pkgname=python2-liblnk -_pkgcode=liblnk -pkgver=20151205 +# Contributor: Olivier Medoc <o_medoc@yahoo.fr> +_base=liblnk +pkgname=python2-${_base} +pkgver=20210417 pkgrel=1 -pkgdesc="Library and tools to access the Windows Shortcut File (LNK) format" -url="https://github.com/libyal/liblnk/" -arch=('any') -license=('LGPLv3+') - -depends=('python2') -makedepends=('python2' 'gcc') - -md5sum=e1bc3423fb60fc4d365e2ab094b97a39 -source=(https://pypi.python.org/packages/source/l/$_pkgcode-python/$_pkgcode-python-$pkgver.tar.gz#md5=$md5sum) -md5sums=($md5sum) +pkgdesc="Library and tools to access the Windows Shortcut File (LNK) format" +url="https://github.com/libyal/${_base}" +arch=(any) +license=(LGPL) +depends=(python2) +makedepends=(python2-setuptools gcc) +source=(https://pypi.org/packages/source/${_base::1}/${_base}-python/${_base}-python-${pkgver}.tar.gz) +sha512sums=('d39d4225ee15da850a5b280a5483331a0d5772dbdfd815eee61b4dd29d6a27f10e2b8cad10e43224d790fa864c0512fce43725a7b8ccabc5ee8deb4705cfa2cb') build() { - cd $srcdir/${_pkgcode}-${pkgver} - + cd ${_base}-${pkgver} python2 setup.py build } package() { - cd $srcdir/${_pkgcode}-${pkgver} - python2 setup.py install --root="${pkgdir}" + cd ${_base}-${pkgver} + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" } |