gdritter repos void-extra-packages / master
More updates to cabal template Getty Ritter 6 years ago
8 changed file(s) with 18 addition(s) and 88 deletion(s). Collapse all Expand all
44 cabal sandbox init
55 cabal update
66 cabal install ${makejobs} --only-dependencies
7 cabal configure -v --prefix=/usr
7 cabal configure -v --prefix=/usr --libsubdir='$pkg' \
8 --datasubdir='$pkg' --docdir='$datadir/doc/$pkg'
89 cabal build ${makejobs}
910 }
1011
2929 if ( cd "$ROOT" && git ls-files --error-unmatch "template" >/dev/null 2>&1 ); then
3030 info "$PKG already exists in void-packages repo!"
3131 elif ! diff "srcpkgs/$PKG/template" "$ROOT/template" >/dev/null; then
32 info "Package $PKG has modifications in void-packages"
32 if [ -z "${OVERWRITE}" ]; then
33 info "Package $PKG has modifications in void-packages"
34 else
35 info "Overwriting $PKG with new modifications!"
36 rm -rf "$ROOT"
37 mkdir -p "$ROOT"
38 cp "srcpkgs/$PKG/template" "$ROOT/template"
39 fi
3340 fi
3441 else
3542 mkdir -p "$ROOT"
33 version=0.2.0
44 revision=1
55 hostmakedepends="ghc cabal-install git"
6 makedepends=""
7 depends=""
6 build_style=haskell-cabal
87 short_desc="Opinionated sugar for SQLite table definitions"
98 maintainer="Getty Ritter <electric-boogaloo-pkg@infinitenegativeutility.com>"
109 license="BSD"
1211 distfiles="https://github.com/aisamanra/${pkgname}/archive/v${version}.tar.gz"
1312 checksum=8d38a73ddccc2514c992c861c6eeff4746552ba40891795e639d92e64fa7c7d7
1413 nopie="yes"
15
16 do_build() {
17 cabal sandbox init
18 cabal update
19 cabal install ${makejobs} --only-dependencies
20 cabal configure -v --prefix=/usr
21 cabal build ${makejobs}
22 }
23
24 do_install() {
25 vbin dist/build/electric-boogaloo/electric-boogaloo
26 vlicense LICENSE
27 }
22 pkgname=frontit
33 version=0.0.1
44 revision=2
5 build_style=haskell-cabal
56 hostmakedepends="ghc cabal-install git"
67 makedepends="zlib-devel"
78 depends=""
1213 distfiles="https://github.com/aisamanra/${pkgname}/archive/v${version}.tar.gz"
1314 checksum="23b8d9bf715420d2a0dfa8f00b7e315ed5dec81f3f0c7969d714e20a3017d891"
1415 nopie="yes"
15
16 do_build() {
17 cabal sandbox init
18 cabal update
19 cabal install ${makejobs} --only-dependencies --prefix=/usr
20 cabal configure -v --prefix=/usr
21 cabal build ${makejobs}
22 }
23
24 do_install() {
25 vbin dist/build/${pkgname}/${pkgname}
26 vlicense LICENSE
27 cp -r /usr/share/x86_64-linux-ghc-8.0.1 ${DESTDIR}/usr/share/.
28 }
33 version=1.0.4
44 revision=1
55 create_wrksrc=yes
6 build_style=haskell-cabal
67 hostmakedepends="ghc cabal-install"
78 makedepends="zlib-devel"
89 depends=""
1415 checksum=c7c69299336f4951ba2d44f40b358a8f9c0c9750847f7c41fcb7b0d59eae2af2
1516 nopie=yes
1617
17 do_build() {
18 cabal sandbox init
19 cabal update
20 cabal install ${makejobs} --only-dependencies
21 cabal configure -v --prefix=/usr --libsubdir='$pkg' \
22 --datasubdir='$pkg' --docdir='$datadir/doc/$pkg'
23 cabal build ${makejobs}
24 }
25
26 do_install() {
27 vbin dist/build/inf-dict/inf-dict
28 vlicense LICENSE
18 post_install() {
2919 mkdir -p ${DESTDIR}/opt/inf/dict/static/
3020 cp static/* ${DESTDIR}/opt/inf/dict/static/.
3121 }
33 version=0.2
44 revision=2
55 nocross=yes
6 build_style=haskell-cabal
67 wrksrc="inf-blog-${version}"
78 hostmakedepends="cabal-install"
89 makedepends="ghc zlib-devel"
1516 nopie=yes # network-2.6.2.1 build fails with a relocation
1617 system_accounts="http"
1718
18 do_build() {
19 cabal sandbox init
20 cabal update
21 cabal install ${makejobs} --only-dependencies
22 cabal configure -v --prefix=/usr
23 cabal build ${makejobs}
24 }
25
26 do_install() {
27 vbin dist/build/inf-blog/ing-blog
28 vlicense LICENSE
29
19 post_install() {
3020 mkdir -p ${DESTDIR}/opt/inf/blog/{static,log,snaplets/{sqlite-auth,sqlite-simple}}
3121 cp ${wrksrc}/static/main.css ${DESTDIR}/opt/inf/blog/static/.
32 # cp ${wrksrc}/snaplets/sqlite-auth/devel.cfg ${DESTDIR}/opt/inf/blog/snaplets/sqlite-auth/.
33 # cp ${wrksrc}/snaplets/sqlite-simple/devel.cfg ${DESTDIR}/opt/inf/blog/snaplets/sqlite-simple/.
3422 cp ${wrksrc}/schema.sql ${DESTDIR}/opt/inf/blog/.
3523
3624 mkdir -p ${DESTDIR}/etc/sv/gdr-inf-blog
33 version="$(date +%F | sed 's/-//g')"
44 revision=1
55 hostmakedepends="ghc cabal-install git"
6 makedepends=""
7 depends=""
6 build_style=haskell-cabal
87 short_desc="Conversion program for TeLML"
98 maintainer="Getty Ritter <telml2html-pkg@infinitenegativeutility.com>"
109 license="BSD"
1615 do_fetch() {
1716 git clone https://git.gdritter.com/telml ${wrksrc}
1817 }
19
20 do_build() {
21 cd telml-markup
22 cabal sandbox init
23 cabal update
24 cabal sandbox add-source ../telml/
25 cabal install ${makejobs} --only-dependencies
26 cabal configure -v --prefix=/usr
27 cabal build ${makejobs}
28 }
29
30 do_install() {
31 vbin telml-markup/dist/build/telml2html/telml2html
32 vlicense telml-markup/LICENSE
33 }
22 pkgname=xmobar
33 version=0.24.5
44 revision=2
5 build_style=haskell-cabal
56 hostmakedepends="pkg-config ghc cabal-install git"
67 makedepends="libX11-devel libXrandr-devel libXft-devel zlib-devel"
7 depends=""
88 short_desc="A minimalistic status bar"
99 maintainer="Getty Ritter <xmobar-pkg@infinitenegativeutility.com>"
1010 license="BSD-3"
1313 checksum=3c406361971703345c291c7732e3969f38dcfd265ca53134b0bffe20e74c1ba1
1414 nocross="yes"
1515 nopie="yes"
16
17 do_build() {
18 # cabal sandbox init
19 cabal update
20 cabal new-build ${makejobs} --prefix=/usr --flags=with_xft
21 # cabal install ${makejobs} --only-dependencies
22 # cabal configure -v --prefix=/usr --flags=with_xft
23 # cabal build ${makejobs}
24 }
25
26 do_install() {
27 vbin $(find dist-newstyle -name xmobar -type f)
28 }