# Maintainer: Aki-nyan <aur@catgirl.link>
pkgname=icestorm
pkgver=20240706_738af82
pkgrel=1
epoch=1
pkgdesc="Lattice iCE40 FPGAs Bitstream Documentation"
arch=("x86_64" 'armv7h')
url="https://github.com/YosysHQ/icestorm"
license=("custom:ISC")
groups=()
options=("!strip")
depends=("python" "libftdi-compat")
optdepends=()
makedepends=("git" "make" "gcc")
conflicts=("icestorm-git")
replaces=()
source=(
"icestorm::git+https://github.com/YosysHQ/icestorm.git#commit=738af82"
)
sha256sums=(
"SKIP"
)
_PREFIX="/usr"
build() {
cd "${srcdir}/icestorm"
make CXX=g++ PREFIX="${_PREFIX}"
}
package() {
cd "${srcdir}/icestorm"
make PREFIX="${_PREFIX}" DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/icestorm/LICENSE"
}