summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21e4890b82c795f14677ea29dafc8a15eccb76fb (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
# Maintainer: vedant-asati03 <vedant.asati03@gmail.com>
pkgname=aurras
pkgver=2.0.2
pkgrel=1
pkgdesc="A high-end command line music player"
arch=('any')
url="https://github.com/vedant-asati03/Aurras"
license=('MIT')
depends=('python>=3.12' 'python-pip' 'mpv' 'ffmpeg')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/a/aurras/aurras-${pkgver}.tar.gz")
sha256sums=('SKIP')

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

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    
    # Install license
    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    
    # Install documentation
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

# vim:set ts=4 sw=4 et: