blob: b471553183ebbecf8a37f1bfb76526fcb487283d (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Aki-nyan <aur@catgirl.link>
pkgname=prjtrellis-nightly
pkgver=@EDA_VER@
pkgrel=1
epoch=1
pkgdesc="Documenting the Lattice ECP5 bit-stream format."
arch=("x86_64")
url="https://github.com/YosysHQ/prjtrellis"
license=("custom:ISC" "MIT")
groups=()
options=("!strip")
provides=("prjtrellis-db" "prjtrellis")
depends=("boost-libs" "python")
optdepends=()
makedepends=("git" "gcc" "cmake" "ninja" "pkgconf" "boost")
conflicts=(
"prjtrellis-db-git"
"prjtrellis-git"
"prjtrellis-db"
"prjtrellis"
)
replaces=()
source=(
"prjtrellis::git+https://github.com/YosysHQ/prjtrellis.git#commit=@EDA_HASH@"
"prjtrellis-db::git+https://github.com/YosysHQ/prjtrellis-db.git#commit=@EDA_DB_HASH@"
)
sha256sums=(
"SKIP"
"SKIP"
)
_PREFIX="/usr"
prepare() {
cd "${srcdir}/prjtrellis"
git submodule init
git config submodule.database.url "$srcdir/prjtrellis-db"
git -c protocol.file.allow=always submodule update
[ ! -d "${srcdir}/prjtrellis/libtrellis/build" ] && mkdir -p libtrellis/build
}
build() {
cd "${srcdir}/prjtrellis/libtrellis"
cd ./build
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=${_PREFIX} ..
ninja
}
package() {
cd "${srcdir}/prjtrellis/libtrellis"
DESTDIR="${pkgdir}" ninja -C build install
install -Dm644 "${srcdir}/prjtrellis/COPYING" "${pkgdir}${_PREFIX}/share/licenses/trellis/COPYING"
install -D "${srcdir}/prjtrellis/tools/bit_to_svf.py" "${pkgdir}${_PREFIX}/share/trellis/tools/bit_to_svf.py"
cd ..
}
|