summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 763c783b769d14e113975155ce4229f13677770a (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
# Maintainer: Kyli0x <kyli0x@protonmail.ch>

pkgname=kurcoder-git
pkgver=0.0.1.r36.g2572458
pkgrel=1
pkgdesc="Toolkit for encoding, decoding, checksums, hex conversions & IP calculations"
arch=('any')
url="https://github.com/0xkurome/kurcoder"
license=('MIT')
depends=('python' 'python-ipcalc')
makedepends=('git' 'python-setuptools')
conflicts=(kurcoder)
source=("git+$url")
md5sums=('SKIP')


pkgver() {
    cd "kurcoder"
    git describe --long  --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build(){
    cd "kurcoder"
    python setup.py build
}

package() {
  cd "kurcoder"
  make DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/kurcoder-git/LICENSE"
}