summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f139253dd9dfae22f0a89999bba72e4b02a03898 (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
# Maintainer: KIV <kiv.apple@gmail.com>

pkgname=libopencm3-ldscripts-git
pkgver=1
pkgrel=3
pkgdesc="ldscripts generator for ARM MCUs from libopencm3 library"
url="https://github.com/libopencm3/libopencm3"
arch=('any')
license=('LGPL3')
depends=()
optdepends=('libopencm3-git')
makedepends=('git')
conflicts=()
replaces=()
backup=()

source=()
md5sums=()

build() {
	cd "${srcdir}"
	git clone https://github.com/libopencm3/libopencm3
}

package() {
	cd "${srcdir}/libopencm3"
	mkdir -p "${pkgdir}/usr/arm-none-eabi/ld"
	install ./ld/devices.data "${pkgdir}/usr/arm-none-eabi/ld/"
	install ./ld/linker.ld.S "${pkgdir}/usr/arm-none-eabi/ld/"
	install ./ld/Makefile.linker "${pkgdir}/usr/arm-none-eabi/ld/"
	mkdir -p "${pkgdir}/usr/arm-none-eabi/scripts"
	install ./scripts/genlink.awk "${pkgdir}/usr/arm-none-eabi/scripts"
}