summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c83f521ba1e0a9a75200d0b33e7d7ad26ca6fa22 (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
# Maintainer: Juanjo Gutierrez <juanjo at gutierrezdequevedo dot com>
pkgname=ucsim-picsimlab
_basename=uCsim_picsimlab
pkgver=0.6.0
pkgrel=1
pkgdesc="uCsim version with minor modifications and some extra code to function as a PICSimLab simulation backend"
arch=('x86_64' 'aarch64')
url="https://github.com/lcgamboa/uCsim_picsimlab"
license=('GPL2')
depends=()
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('6fe05d6c4906440bbf6b326de78db00a2fb48956e7418de64df6a17eb5bf3324')
makedepends=('flex' 'bison' 'gcc' 'make')
conflicts=('ucsim')
provides=('ucsim')

prepare() {
    cd "$_basename-$pkgver"
    autoupdate
    autoreconf --install
    ./configure --prefix="/usr"
}

build() {
    cd "$_basename-$pkgver"
    make CXXFLAGS="-fPIC"
    make -C picsimlab
}

package() {
    cd "$_basename-$pkgver"
    make DESTDIR="$pkgdir/" install
    install -d -m 755 "$pkgdir/usr/lib"
    make -C picsimlab DESTDIR="$pkgdir/usr" install
}