1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-15 07:55:04 +01:00
model-ghdl/arch/PKGBUILD

35 lines
683 B
Bash
Raw Normal View History

2016-05-30 19:15:30 +02:00
# Maintainer: Markus Koch <CClassicVideos@aol.com>
pkgname=model-ghdl
2016-06-04 16:28:59 +02:00
pkgver=cee0976
2016-05-30 19:15:30 +02:00
pkgrel=1
pkgdesc='A wrapper for ghdl to make it look like modelsim.'
arch=('i686' 'x86_64')
url='https://github.com/cclassic/model-ghdl'
license=('GPL')
depends=('gtk3')
makedepends=('cmake' 'git')
source=("model-ghdl::git://github.com/cclassic/model-ghdl.git")
sha1sums=('SKIP')
pkgver() {
2016-06-04 16:28:59 +02:00
cd "$srcdir/model-ghdl"
2016-05-30 19:15:30 +02:00
echo $(git log |head -n 1|sed "s/.* //g" | head -c 7)
}
build() {
cd "$srcdir/model-ghdl"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
#-DCMAKE_C_FLAGS=-DPROGRAM_REVISION="#${pkgver}";
make
}
package() {
cd "$srcdir/model-ghdl"
make DESTDIR="${pkgdir}" install
}