summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoryjun2021-02-03 23:09:49 +0800
committeryjun2021-02-03 23:09:49 +0800
commit808e55475cc621ceb7775a5bc0e4a8d323f2c215 (patch)
treed3dfddca402b058d8d7458a7d99a6f3c2f5a935f /PKGBUILD
parent8ab2d4985658d9f9e30d01cf55187daf9c19ef39 (diff)
downloadaur-808e55475cc621ceb7775a5bc0e4a8d323f2c215.tar.gz
use makefile to build and install
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 26 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3f4b0f65c19..54afe1058dc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,49 @@
-# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+# Maintainer : yjun <jerrysteve1101 at gmail dot com>
+# Contributor : Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=picsim
pkgver=0.8.1
-pkgrel=1
+pkgrel=2
pkgdesc="Emulates some PIC microcontroller and periferics such as USART and timers, the simulator architecture permit easy implementation of external elements in C"
arch=('x86_64')
url='https://github.com/lcgamboa/picsim'
license=('GPL2')
options=('staticlibs')
depends=('glibc')
-makedepends=('gcc9' 'doxygen')
+makedepends=('gcc9'
+ 'doxygen')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/lcgamboa/picsim/archive/v${pkgver}.tar.gz")
sha256sums=('e7b58920ef4bdc8720338a38bad6890b687fbc37423e9537e961ac222d47dd73')
prepare() {
cd "${pkgname}-${pkgver}"
+
+ # can't compile with gcc10
sed -i "3s|gcc|gcc-9|" src/Makefile
+
+ # generate doc error
+ sed -i '9s|doc||' Makefile
}
build() {
- cd "${pkgname}-${pkgver}/src"
+ cd "${pkgname}-${pkgver}"
+
make
}
package() {
- cd "${pkgname}-${pkgver}/src"
- install -Dm644 libpicsim.so.8.1 -t "${pkgdir}/usr/lib"
- ln -s libpicsim.so.8.1 "${pkgdir}/usr/lib/libpicsim.so.0"
- ln -s libpicsim.so.8.1 "${pkgdir}/usr/lib/libpicsim.so"
- install -Dm644 libpicsim.a -t "${pkgdir}/usr/lib/"
- install -Dm755 picsim -t "${pkgdir}/usr/bin"
- install -Dm644 ../include/*.h -t "${pkgdir}/usr/include/picsim"
+ cd "${pkgname}-${pkgver}"
+
+ install -dm755 "$pkgdir/usr/lib"
+
+ # install
+ make install prefix="$pkgdir/usr"
+
+ # bin
+ install -Dm755 src/${pkgname} -t "${pkgdir}/usr/bin"
+
+ # doc
install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -avR ../docs "${pkgdir}/usr/share/doc/${pkgname}"
- cp -avR ../examples "${pkgdir}/usr/share/doc/${pkgname}"
-} \ No newline at end of file
+ cp -avR docs examples \
+ "${pkgdir}/usr/share/doc/${pkgname}"
+}