Merge branch 'master' of git.groulx.xyz:build
This commit is contained in:
commit
af6a8a01b8
3 changed files with 163 additions and 0 deletions
22
apk/ghc-static/APKBUILD
Normal file
22
apk/ghc-static/APKBUILD
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Maintainer: Mitch Tishmack <mitch.tishmack@gmail.com>
|
||||
pkgname=ghc-static
|
||||
pkgver=8.6.5
|
||||
pkgrel=2
|
||||
pkgdesc="The Glasgow Haskell Compiler"
|
||||
url="http://haskell.org"
|
||||
arch="x86_64"
|
||||
license="BSD-3-Clause"
|
||||
depends="gmp-dev perl gcc>=6.2.1 llvm5 libffi-dev"
|
||||
makedepends="perl alpine-sdk bash"
|
||||
provides="ghc"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
options="!strip" # we strip it manually in build()
|
||||
source="https://github.com/redneb/ghc-alt-libc/releases/download/ghc-${pkgver}-musl/ghc-${pkgver}-x86_64-unknown-linux-musl.tar.xz"
|
||||
builddir="$srcdir/ghc-${pkgver}"
|
||||
|
||||
|
||||
package() {
|
||||
cd $builddir
|
||||
./configure --prefix="/usr"
|
||||
make install DESTDIR="$pkgdir"
|
||||
}
|
114
apk/git-annex/APKBUILD
Normal file
114
apk/git-annex/APKBUILD
Normal file
|
@ -0,0 +1,114 @@
|
|||
# Maintainer: Johann Klähn <kljohann@gmail.com>
|
||||
|
||||
pkgname=git-annex
|
||||
pkgdesc='manage files with git, without checking their contents into git (cabal sandbox build)'
|
||||
pkgver=7.20190708
|
||||
pkgrel=0
|
||||
|
||||
url='http://git-annex.branchable.com/'
|
||||
license='GPL3'
|
||||
arch='i686 x86_64'
|
||||
|
||||
depends='curl git gmp gnupg libgsasl libidn libxml2 lsof openssh rsync util-linux'
|
||||
options='!makeflags'
|
||||
makedepends='ghc happy alex libmagic file-dev'
|
||||
source="https://git.kitenet.net/index.cgi/git-annex.git/snapshot/$pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
# The following flags are used when building git-annex.
|
||||
# Features can be disabled by prepending them with a dash in $_features below.
|
||||
# You can use this to disable the webapp, for example (→ less build time).
|
||||
|
||||
# S3 ............. Enable S3 support
|
||||
# WebDAV ......... Enable WebDAV support
|
||||
# Inotify ........ Enable inotify support
|
||||
# Dbus ........... Enable dbus support
|
||||
# Assistant ...... Enable git-annex assistant and watch command
|
||||
# Webapp ......... Enable git-annex webapp
|
||||
# Webapp-secure .. Secure webapp
|
||||
# Pairing ........ Enable pairing
|
||||
# XMPP ........... Enable notifications using XMPP
|
||||
# DNS ............ Enable the haskell DNS library for DNS lookup
|
||||
# Production ..... Enable production build (slower build; faster binary)
|
||||
# -Android ....... Cross building for Android
|
||||
# -AndroidSplice . Building to get TH splices for Android
|
||||
# TestSuite ...... Embed the test suite into git-annex
|
||||
# TDFA ........... Use regex-tdfa for wildcards
|
||||
# Feed ........... Enable podcast feed support
|
||||
# Quvi ........... Enable use of quvi to download videos
|
||||
# Tahoe .......... Enable the tahoe special remote
|
||||
# CryptoHash ..... Enable use of cryptohash for checksumming
|
||||
# DesktopNotify .. Enable desktop environment notifications
|
||||
# -EKG ........... Enable use of EKG to monitor git-annex as it runs
|
||||
|
||||
_features='
|
||||
S3
|
||||
-WebDAV
|
||||
Inotify
|
||||
Dbus
|
||||
Assistant
|
||||
Webapp
|
||||
Webapp-secure
|
||||
Pairing
|
||||
-XMPP
|
||||
DNS
|
||||
Production
|
||||
-Android
|
||||
-AndroidSplice
|
||||
TestSuite
|
||||
TDFA
|
||||
Feed
|
||||
Quvi
|
||||
-Tahoe
|
||||
CryptoHash
|
||||
DesktopNotify
|
||||
-EKG
|
||||
'
|
||||
|
||||
_features=`echo $_features | tr -d '\n'`
|
||||
|
||||
case " ${_features}" in
|
||||
*" Dbus"*)
|
||||
makedepends="${makedepends} dbus"
|
||||
;;
|
||||
esac
|
||||
|
||||
_cabal_flags='--force-reinstalls --reinstall --user'
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
|
||||
cabal sandbox init
|
||||
export PATH="$PWD/.cabal-sandbox/bin:$PATH"
|
||||
|
||||
cabal update
|
||||
|
||||
msg "Building dependencies..."
|
||||
msg2 "Features: ${_features}"
|
||||
msg2 "Cabal flags: ${_cabal_flags}"
|
||||
|
||||
which c2hs || cabal install ${_cabal_flags} c2hs
|
||||
cabal install ${_cabal_flags} --only-dependencies `printf '-f %s ' ${_features}`
|
||||
|
||||
msg "Configuring..."
|
||||
cabal configure `printf '-f %s ' ${_features}`
|
||||
|
||||
msg "Starting build..."
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
|
||||
GNUPGHOME="$PWD/.gnupg" make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
cabal sandbox init
|
||||
export PATH="$PWD/.cabal-sandbox/bin:$PATH"
|
||||
|
||||
make GHC="cabal exec ghc --" DESTDIR="$pkgdir" install
|
||||
}
|
||||
sha512sums="b19e829be1d38b14985bd7dda565b8cb59852a54ade529b9dc8ccc19e563f4c15f1e86c239dc368e4c55098e0fde8722f22d2c557cb9d72f3886d17d09a7f1d7 git-annex-7.20190708.tar.gz"
|
27
apk/stack-static/APKBUILD
Normal file
27
apk/stack-static/APKBUILD
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Maintainer: Johann Klähn <kljohann@gmail.com>
|
||||
|
||||
pkgname=stack-static
|
||||
pkgdesc="The Haskell Tool Stack"
|
||||
pkgver=2.1.1
|
||||
pkgrel=2
|
||||
url="https://github.com/commercialhaskell/stack"
|
||||
license="BSD"
|
||||
arch='x86_64'
|
||||
depends='vim emacs curl git libc-dev xz coreutils automake python3 zlib-dev shadow gmp-dev ghc'
|
||||
provides='stack'
|
||||
source="https://github.com/commercialhaskell/stack/releases/download/v$pkgver/stack-$pkgver-linux-x86_64-static.tar.gz"
|
||||
builddir="$srcdir/stack-$pkgver-linux-x86_64-static"
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
|
||||
install -Dm755 stack "$pkgdir/usr/bin/stack"
|
||||
|
||||
}
|
||||
|
||||
# This involves a recompile, uncomment if you're patient.
|
||||
# check() {
|
||||
# cd git-annex
|
||||
# stack test
|
||||
# }
|
||||
sha512sums="ee7bf112c32eb54d0a1507179f91bbe56f82a491a8f5ae340da8321b3842c5de23eaded5d38bc3050c06f0865bcf621e36b918ccad15badd43952fecb4669ccd stack-2.1.1-linux-x86_64-static.tar.gz"
|
Loading…
Reference in a new issue