From 7a8226f44d4d0700a01041c83d84a9a0f0f138fc Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Mon, 30 May 2016 19:15:30 +0200 Subject: [PATCH] Added Arch Linux PKGBUILD --- arch/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ arch/README.md | 12 ++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 arch/PKGBUILD create mode 100644 arch/README.md diff --git a/arch/PKGBUILD b/arch/PKGBUILD new file mode 100644 index 0000000..0fee77c --- /dev/null +++ b/arch/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Markus Koch + +pkgname=model-ghdl +pkgver=8c5bdd7 +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() { + 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 +} + diff --git a/arch/README.md b/arch/README.md new file mode 100644 index 0000000..b6cb7fe --- /dev/null +++ b/arch/README.md @@ -0,0 +1,12 @@ +Arch Linux Build Script +======================= +This directory contains the PKGBUILD required to compile binary distribution packages for Arch Linux. + +Build instructions +------------------ +On Arch, simply enter +``` +$ makepkg -s +# pacman -U model-ghdl-xxxxxxx-1-arch.pkg.tar.xz +``` +to install the program.