diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 45 |
3 files changed, 42 insertions, 20 deletions
@@ -1,14 +1,17 @@ pkgbase = relevation pkgdesc = Command-line search for Revelation Password Manager files pkgver = 1.3.1 - pkgrel = 3 - url = http://p.outlyer.net/relevation/ + pkgrel = 4 + url = http://p.outlyer.net/relevation arch = any - license = custom - makedepends = python2-setuptools + license = BSD + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel depends = python-pycryptodome depends = python-lxml source = http://p.outlyer.net/relevation/files/relevation-1.3.1.tar.gz - md5sums = 40488551b95ce1fcfc6062e51efd8545 + sha256sums = 73deca0610704daa8a55db00534fab3205caa6b905afca1b1bb795b88b909a6c pkgname = relevation diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore @@ -1,23 +1,38 @@ -# Maintainer: Michal Lisowski <lisu87@gmail.com> -pkgname=relevation +# Maintainer: +# Contributor: Michal Lisowski <lisu87@gmail.com> + +_pkgname=relevation +pkgname="$_pkgname" pkgver=1.3.1 -pkgrel=3 +pkgrel=4 pkgdesc="Command-line search for Revelation Password Manager files" +url="http://p.outlyer.net/relevation" +license=('BSD') arch=('any') -url="http://p.outlyer.net/relevation/" -license=('custom') -depends=('python-pycryptodome' 'python-lxml') -makedepends=('python2-setuptools') -source=("http://p.outlyer.net/relevation/files/${pkgname}-${pkgver}.tar.gz") -md5sums=('40488551b95ce1fcfc6062e51efd8545') -prepare() { - cd "$pkgname-$pkgver" +depends=( + 'python-pycryptodome' + 'python-lxml' +) +makedepends=( + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) + +_pkgsrc="$_pkgname-$pkgver" +_pkgext="tar.gz" +source=("$url/files/$_pkgsrc.$_pkgext") +sha256sums=('73deca0610704daa8a55db00534fab3205caa6b905afca1b1bb795b88b909a6c') + +build() { + cd "$_pkgsrc" + python -m build --no-isolation --wheel } package() { - cd "$pkgname-$pkgver" - make prefix=/usr DESTDIR="$pkgdir/" install - - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + cd "$_pkgsrc" + python -m installer --destdir="${pkgdir:?}" dist/*.whl + install -D -m644 LICENSE -t "${pkgdir:?}/usr/share/licenses/$pkgname/" } |