summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8db8d5e7e4833b00d47819408f1e6af9fb934ae (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
30
31
32
33
34
# Maintainer:
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: DoTheEvolution <DoTheEvo@gmail.com>
pkgname=angrysearch
pkgver=1.0.4
pkgrel=3
pkgdesc="Linux file search, instant results as you type"
arch=('any')
url="https://github.com/DoTheEvo/ANGRYsearch"
license=('GPL-2.0-only')
depends=('python' 'python-gobject' 'python-pyqt5' 'libxkbcommon-x11' 'xdg-utils' 'xdotool')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/DoTheEvo/ANGRYsearch/archive/v$pkgver.tar.gz")
# source=("git+https://github.com/DoTheEvo/ANGRYsearch.git#commit=$_commit")
sha256sums=("35287f7232f3892308186b33c05369ca8123647fbae6b8be0bb43f28ff052de9")

pkgver() {
    cd "$srcdir/ANGRYsearch-$pkgver"
    python setup.py --version
}

build() {
    cd "$srcdir/ANGRYsearch-$pkgver"
    python -m build --no-isolation --wheel
}

package() {
    cd "$srcdir/ANGRYsearch-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl

    local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
    mv "$pkgdir/$_site_packages"/usr/* "$pkgdir/usr/"
    rmdir "$pkgdir/$_site_packages"/usr
}