summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e802df7a558689fb7740c7d4233187d69d31b73d (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
32
33
34
35
36
37
# Maintainer: wenLiangcan <boxeed at gmail dot com>
# Contributor: Kyle Keen <keenerd@gmail.com>

pkgname=micropython-git
pkgver=20150822
pkgrel=1
pkgdesc="Python 3 for microcontrollers, unix version."
arch=('i686' 'x86_64')
url="http://micropython.org/"
license=('MIT')
depends=('readline' 'libffi')
makedepends=('git' 'python')
provides=('micropython')
conflicts=('micropython')
optdepends=('micropython-lib')
source=('git://github.com/micropython/micropython.git')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/micropython"
    git log -1 --format='%cd' --date=short | tr -d -- '-'
}

build() {
    cd "${srcdir}/micropython/unix"
    sed -i 's|/local||' Makefile
    make
}

package() {
    cd "${srcdir}/micropython/unix"
    # install -Dm755 "micropython" "${pkgdir}/usr/bin/micropython"
    make DESTDIR="$pkgdir" install

    install -Dm644 "../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}