[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Wednesday, December 23, 2020 @ 21:57:21 Author: felixonmars Revision: 785424 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 785423, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 785423, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-12-23 21:57:21 UTC (rev 785424) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=8 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build $MAKEFLAGS +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Sunday, August 30, 2020 @ 20:22:15 Author: felixonmars Revision: 693083 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 693082, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 693082, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-08-30 20:22:15 UTC (rev 693083) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=7 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build $MAKEFLAGS +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Monday, August 17, 2020 @ 12:27:00 Author: felixonmars Revision: 682557 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 682556, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 682556, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-08-17 12:27:00 UTC (rev 682557) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=6 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build $MAKEFLAGS +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Thursday, April 23, 2020 @ 22:43:57 Author: felixonmars Revision: 618364 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 618363, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 618363, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-04-23 22:43:57 UTC (rev 618364) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=5 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Thursday, February 27, 2020 @ 08:41:27 Author: felixonmars Revision: 583629 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 583628, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 583628, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-02-27 08:41:27 UTC (rev 583629) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=4 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Sunday, February 16, 2020 @ 19:51:37 Author: felixonmars Revision: 572809 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 572808, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 572808, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-02-16 19:51:37 UTC (rev 572809) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=3 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Wednesday, January 22, 2020 @ 07:08:30 Author: felixonmars Revision: 553382 archrelease: copy trunk to community-staging-x86_64 Added: haskell-timezone-series/repos/community-staging-x86_64/ haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 553381, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-staging-x86_64/PKGBUILD (from rev 553381, haskell-timezone-series/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-01-22 07:08:30 UTC (rev 553382) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=2 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et:
[arch-commits] Commit in haskell-timezone-series/repos (2 files)
Date: Thursday, January 9, 2020 @ 22:56:41 Author: anthraxx Revision: 551513 archrelease: copy trunk to community-x86_64 Added: haskell-timezone-series/repos/community-x86_64/ haskell-timezone-series/repos/community-x86_64/PKGBUILD (from rev 551512, haskell-timezone-series/trunk/PKGBUILD) --+ PKGBUILD | 53 + 1 file changed, 53 insertions(+) Copied: haskell-timezone-series/repos/community-x86_64/PKGBUILD (from rev 551512, haskell-timezone-series/trunk/PKGBUILD) === --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-01-09 22:56:41 UTC (rev 551513) @@ -0,0 +1,53 @@ +# Maintainer: Levente Polyak + +_hkgname=timezone-series +pkgname=haskell-${_hkgname} +pkgver=0.1.9 +pkgrel=1 +pkgdesc='Enhanced timezone handling for Data.Time' +url='http://projects.haskell.org/time-ng/' +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-base' 'haskell-deepseq' 'haskell-time') +makedepends=('ghc') +source=(https://hackage.haskell.org/package/${_hkgname}-${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha256sums=('e5d35df5dc2408803120602b0a66ed63439e36b38dd0895f3e2159fcbd7d9cae') +sha512sums=('9a716223270dfcb0ed39e2dcfb460e3540c0f2444f703c466cbd48ad5664e689aa3f6595f32e59b96fef7891aafabc03c9925367a26c2c043cb6adca2dad7a88') + +build() { + cd ${_hkgname}-${pkgver} +runhaskell Setup configure -O \ + --enable-shared \ + --enable-executable-dynamic \ + --disable-library-vanilla \ + --prefix=/usr \ + --docdir=/usr/share/doc/$pkgname \ + --dynlibdir=/usr/lib \ + --libsubdir=\$compiler/site-local/\$pkgid \ + --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \ + --ghc-option='-pie' +runhaskell Setup build +runhaskell Setup haddock +runhaskell Setup register --gen-script +runhaskell Setup unregister --gen-script +sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh +sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd ${_hkgname}-${pkgver} + runhaskell Setup test +} + +package() { + cd ${_hkgname}-${pkgver} + install -Dm 744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -Dm 744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + install -dm 755 "${pkgdir}/usr/share/doc/ghc/html/libraries" + runhaskell Setup copy --destdir="$pkgdir" + + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /usr/share/doc/${pkgname}/html "${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}" +} + +# vim: ts=2 sw=2 et: