blob: 707f95ec400fc82ae7a44ed29e8f9a42daaf7c5b (
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
|
# Maintainer: David Adler <d.adler@posteo.de>
pkgname=gnucap-models
pkgver=20171003
pkgrel=1
pkgdesc="additional device models for Gnucap"
arch=('x86_64')
url="https://git.savannah.gnu.org/cgit/gnucap/gnucap-models.git/"
license=('custom')
depends=('gnucap')
source=("$url/snapshot/$pkgname-$pkgver.tar.gz")
md5sums=('3740c6effcdd953610abeeee3919d372')
prepare() {
cd $pkgname-$pkgver
# allow for DESTDIR
sed -i 's/\(^INSTALL_DIR = \)/\1$(DESTDIR)/' plugins/*/Make2.gcc
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
# 4 sets of models with a total of 2 different licenses
mv plugins/models-bsim/COPYING plugins/models-bsim/COPYING.bsim
install -t "${pkgdir}/usr/share/licenses/$pkgname/" \
-vDm 644 plugins/models-{bsim/COPYING.bsim,spice3f5/COPYING}
}
|