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
2ce00e6eb6
3 changed files with 85 additions and 0 deletions
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
pkgbase = mbox-tools
|
||||
pkgdesc = A collection of tools to process mbox files
|
||||
pkgver = 0.2.0.4
|
||||
pkgrel = 5
|
||||
url = http://hackage.haskell.org/package/mbox-tools
|
||||
install = install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = BSD3
|
||||
makedepends = ghc
|
||||
depends = ghc
|
||||
depends = haskell-codec-mbox
|
||||
depends = haskell-fclabels>=1.0
|
||||
depends = haskell-hsemail
|
||||
depends = haskell-mtl
|
||||
depends = haskell-parsec
|
||||
depends = haskell-puremd5
|
||||
depends = haskell-random
|
||||
options = strip
|
||||
source = http://hackage.haskell.org/packages/archive/mbox-tools/0.2.0.4/mbox-tools-0.2.0.4.tar.gz
|
||||
sha256sums = 7053c190f5bf46365530df916f780ddb8bd6f497868fc69ec07dbda94fa20dc8
|
||||
|
||||
pkgname = mbox-tools
|
||||
|
||||
37
PKGBUILD
Normal file
37
PKGBUILD
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
_hkgname=mbox-tools
|
||||
pkgname=$_hkgname
|
||||
pkgver=0.2.0.4
|
||||
pkgrel=5
|
||||
pkgdesc="A collection of tools to process mbox files"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://hackage.haskell.org/package/$_hkgname"
|
||||
license=('BSD3')
|
||||
makedepends=("ghc")
|
||||
depends=("ghc" "haskell-codec-mbox" "haskell-fclabels>=1.0" "haskell-hsemail" "haskell-mtl" "haskell-parsec" "haskell-puremd5" "haskell-random")
|
||||
options=('strip')
|
||||
install=install
|
||||
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=("7053c190f5bf46365530df916f780ddb8bd6f497868fc69ec07dbda94fa20dc8")
|
||||
|
||||
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"
|
||||
}
|
||||
24
install
Normal file
24
install
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
pkgname=mbox-tools
|
||||
HS_DIR=usr/share/haskell/${pkgname}
|
||||
|
||||
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