diff options
author | Paulo Matias | 2021-11-06 22:02:07 -0300 |
---|---|---|
committer | Paulo Matias | 2021-11-06 22:02:07 -0300 |
commit | df79277595e4331591805c91c27b9262b705a947 (patch) | |
tree | a272bb43d916909ec637907a36041caa33b56f4b | |
parent | dd6393ce1cc4f0142bdcba93803a31154507eb11 (diff) | |
download | aur-df79277595e4331591805c91c27b9262b705a947.tar.gz |
transform into split package
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 24 insertions, 8 deletions
@@ -1,7 +1,7 @@ # Maintainer: Jiuyang Liu <liujiuyang1994@gmail.com> # Maintainer: Paulo Matias <matias@ufscar.br> -pkgname=bluespec-git +pkgname=(bluespec-git bluespec-vimfiles-git bluespec-docs-git) pkgver=r641.e330e11e pkgrel=1 pkgdesc='Bluespec Compiler (BSC)' @@ -9,8 +9,7 @@ arch=('x86_64') url='https://github.com/B-Lang-org/bsc' license=('BSD') depends=('haskell-old-time' 'haskell-syb' 'haskell-regex-compat' 'haskell-split') -makedepends=('git' 'gperf' 'ghc' 'tcl') -optdepends=('tcl: bluesim and bluetcl') +makedepends=('git' 'gperf' 'ghc' 'tcl' 'texlive-core') # workaround for pkgrel overwritten on regen (by TkG) # rebuild whenever some haskell depend is rebuilt eval pkgrel=$(pacman -Si ${depends[@]} | awk '/Version/{sum+=substr($0,match($0,/[^-]+$/))}END{print sum}') @@ -34,15 +33,15 @@ prepare() { build(){ cd "$srcdir/bsc" make GHC="ghc -dynamic" GHCJOBS=2 GHCRTSFLAGS='+RTS -M5G -A128m -RTS' install-src + make install-doc } -package() { +package_bluespec-git() { + optdepends=('tcl: bluesim and bluetcl') + cd "$srcdir/bsc" install -d "${pkgdir}${_prefix}" - cp -dr --preserve=mode,timestamp ./inst/* "${pkgdir}${_prefix}" - - install -d "${pkgdir}/usr/share/vim/vimfiles" - cp -dr --preserve=mode,timestamp ./util/vim/{ftdetect,indent,syntax} "${pkgdir}/usr/share/vim/vimfiles" + cp -dr --preserve=mode,timestamp ./inst/{bin,lib} "${pkgdir}${_prefix}" install -d "${pkgdir}/usr/bin" local _prog @@ -54,3 +53,20 @@ package() { install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } +package_bluespec-vimfiles-git() { + pkgdesc='Bluespec vim files' + depends=() + + cd "$srcdir/bsc" + install -d "${pkgdir}/usr/share/vim/vimfiles" + cp -dr --preserve=mode,timestamp ./util/vim/{ftdetect,indent,syntax} "${pkgdir}/usr/share/vim/vimfiles" +} + +package_bluespec-docs-git() { + pkgdesc='Bluespec docs' + depends=() + + cd "$srcdir/bsc" + install -d "${pkgdir}${_prefix}" + cp -dr --preserve=mode,timestamp ./inst/doc "${pkgdir}${_prefix}" +} |