mirror of
https://github.com/archlinux/aur.git
synced 2026-03-07 08:23:11 +01:00
make subdir for packages
This commit is contained in:
commit
8963f1ab1e
3 changed files with 71 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
pkgbase = haskell-fclabels
|
||||
pkgdesc = First class accessor labels.
|
||||
pkgver = 1.1.6
|
||||
pkgrel = 1
|
||||
url = http://hackage.haskell.org/package/fclabels
|
||||
install = haskell-fclabels.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = custom:BSD3
|
||||
makedepends = ghc
|
||||
depends = haskell-mtl>=2.0.1.0
|
||||
depends = haskell-template-haskell>=2.5.0.0
|
||||
depends = haskell-transformers>=0.2.2.0
|
||||
options = strip
|
||||
source = http://hackage.haskell.org/packages/archive/fclabels/1.1.6/fclabels-1.1.6.tar.gz
|
||||
sha256sums = f3f2bc5cee6f9110bc35aa9f16115debc3632fd2ac667e5cb834a1aaf1c2bf38
|
||||
|
||||
pkgname = haskell-fclabels
|
||||
|
||||
34
PKGBUILD
Normal file
34
PKGBUILD
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
_hkgname=fclabels
|
||||
pkgname=haskell-${_hkgname}
|
||||
pkgver=1.1.6
|
||||
pkgrel=1
|
||||
pkgdesc="First class accessor labels."
|
||||
url="http://hackage.haskell.org/package/${_hkgname}"
|
||||
license=('custom:BSD3')
|
||||
arch=('i686' 'x86_64')
|
||||
makedepends=('ghc')
|
||||
depends=('haskell-mtl>=2.0.1.0' 'haskell-template-haskell>=2.5.0.0' 'haskell-transformers>=0.2.2.0')
|
||||
options=('strip')
|
||||
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
|
||||
install=${pkgname}.install
|
||||
sha256sums=('f3f2bc5cee6f9110bc35aa9f16115debc3632fd2ac667e5cb834a1aaf1c2bf38')
|
||||
build() {
|
||||
cd ${srcdir}/${_hkgname}-${pkgver}
|
||||
runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs --enable-shared \
|
||||
--prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
|
||||
runhaskell Setup build
|
||||
runhaskell Setup haddock
|
||||
runhaskell Setup register --gen-script
|
||||
runhaskell Setup unregister --gen-script
|
||||
sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
|
||||
}
|
||||
package() {
|
||||
cd ${srcdir}/${_hkgname}-${pkgver}
|
||||
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
|
||||
install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
|
||||
install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
|
||||
ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
|
||||
runhaskell Setup copy --destdir=${pkgdir}
|
||||
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
||||
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
|
||||
}
|
||||
18
haskell-fclabels.install
Normal file
18
haskell-fclabels.install
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
HS_DIR=usr/share/haskell/haskell-fclabels
|
||||
post_install() {
|
||||
${HS_DIR}/register.sh
|
||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||
}
|
||||
pre_upgrade() {
|
||||
${HS_DIR}/unregister.sh
|
||||
}
|
||||
post_upgrade() {
|
||||
${HS_DIR}/register.sh
|
||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||
}
|
||||
pre_remove() {
|
||||
${HS_DIR}/unregister.sh
|
||||
}
|
||||
post_remove() {
|
||||
(cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue