summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0a6eb775523dcae499c98ea2cb7907fa02643ac (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
# Maintainer: Supreme <criteria32 at gmail dot com>
pkgname='mspdebug-git'
pkgrel=1
pkgver=v0.25.r76.ga1a06e7
pkgdesc="Free debugger for MSP430 MCUs"
arch=('x86_64')
url="https://github.com/dlbeer/mspdebug"
license=('GPL')
depends=('libusb-compat' 'readline')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/dlbeer/mspdebug.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' 
}
build(){
    cd "$srcdir/${pkgname%-git}"
    make
}
package(){
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir" PREFIX="/usr" install
}