summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8dd823af74b6d0aa20c4f12c0383e2db71966920 (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
# Maintainer: Pieter Joost <pj@born2code.net>
pkgname=topalias
pkgver=2.0.20
pkgrel=1
pkgdesc="Linux bash/zsh alias generator and statistics from command history,"
arch=('any')
url="https://github.com/CSRedRat/topalias"
license=('GNU')
depends=('python')
makedepends=('python-setuptools')
source=("$url/archive/v$pkgver.tar.gz")
sha512sums=('8c2c5d0e79ba0155e75c362b3c27ee36dff3d965609e14ba1bfef9a5e7fcd399d6309934c494ed59fc41cc56a68c4ef47f0c96c6684eefd802656b05d782ba93')

build() {
  cd "$pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"
  python setup.py install --skip-build \
    --optimize=1 \
    --prefix=/usr \
    --root="${pkgdir}"
}

install() {
  install -Dm 644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
}