summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6d915ca7ccc9da4807a9324089923c730cdfa92 (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
_pkgbase=BeautifulDiscord
pkgname=beautiful-discord-git
pkgdesc="Adds custom CSS support to Discord"
pkgver=69.0d09097
pkgrel=1
license=('MIT')
arch=('any')
url="https://github.com/leovoel/BeautifulDiscord"
depends=('python' 'python-psutil' 'discord')
makedepends=('python-setuptools' 'git')
source=("git+https://github.com/leovoel/BeautifulDiscord.git")
sha1sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgbase"
    echo "$(git rev-list HEAD --count).$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgbase"
    python setup.py build
}

package() {
    cd "$srcdir/$_pkgbase"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}