diff options
author | Johannes Frankenau | 2017-08-28 18:01:48 +0200 |
---|---|---|
committer | Johannes Frankenau | 2017-08-28 18:01:48 +0200 |
commit | afcc17772d8b55a537b3f80ed2ab00e75b0e1ab3 (patch) | |
tree | cbda357251c39fd386de2d16d411067a071c0262 | |
download | aur-afcc17772d8b55a537b3f80ed2ab00e75b0e1ab3.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 43 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9284ff6b4eb6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = super-user-spark + pkgdesc = Configure your dotfile deployment with a DSL + pkgver = 0.3.2.0 + pkgrel = 1 + url = https://github.com/NorfairKing/super-user-spark + arch = i686 + arch = x86_64 + license = MIT + makedepends = ghc + depends = haskell-aeson + depends = haskell-aeson-pretty + depends = haskell-mtl + depends = haskell-optparse-applicative + depends = haskell-parsec + depends = haskell-puremd5 + depends = haskell-shelly + depends = haskell-text + source = https://hackage.haskell.org/packages/archive/super-user-spark/0.3.2.0/super-user-spark-0.3.2.0.tar.gz + sha512sums = af92140fdf84fc53f13a1def9b8fc38d682560d4cec6391d53850982678515433efc8dcb46233a8aa995261550de174bd161bb9ba1e92fb572572c153dcade44 + +pkgname = super-user-spark + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..92e2f7c8869f --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/pkg/ +/src/ +/*.tar.gz +/*.pkg.tar +/*.pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58d9de1e7c86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +pkgname=super-user-spark +pkgver=0.3.2.0 +pkgrel=1 +pkgdesc="Configure your dotfile deployment with a DSL" +url="https://github.com/NorfairKing/super-user-spark" +license=('MIT') +arch=('i686' 'x86_64') +depends=('haskell-aeson' 'haskell-aeson-pretty' 'haskell-mtl' 'haskell-optparse-applicative' 'haskell-parsec' 'haskell-puremd5' 'haskell-shelly' 'haskell-text') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('af92140fdf84fc53f13a1def9b8fc38d682560d4cec6391d53850982678515433efc8dcb46233a8aa995261550de174bd161bb9ba1e92fb572572c153dcade44') + +prepare() { + sed -e 's/aeson *>= 0.8 *&& < 1.1/aeson >= 0.8 \&\& < 1.3/' \ + -e 's/directory *>= 1.2.5 *&& < 1.3/directory >= 1.2.5 \&\& < 1.4/' \ + -i $pkgname-$pkgver/$pkgname.cabal +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --datasubdir="$pkgname" \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid + runhaskell Setup build + 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 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + + # Remove static libs + find "$pkgdir"/usr/lib -name "*.a" -delete +} |