More updates to cabal template
Getty Ritter
6 years ago
4 | 4 |
cabal sandbox init
|
5 | 5 |
cabal update
|
6 | 6 |
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'
|
8 | 9 |
cabal build ${makejobs}
|
9 | 10 |
}
|
10 | 11 |
|
29 | 29 |
if ( cd "$ROOT" && git ls-files --error-unmatch "template" >/dev/null 2>&1 ); then
|
30 | 30 |
info "$PKG already exists in void-packages repo!"
|
31 | 31 |
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
|
33 | 40 |
fi
|
34 | 41 |
else
|
35 | 42 |
mkdir -p "$ROOT"
|
3 | 3 |
version=0.2.0
|
4 | 4 |
revision=1
|
5 | 5 |
hostmakedepends="ghc cabal-install git"
|
6 | |
makedepends=""
|
7 | |
depends=""
|
| 6 |
build_style=haskell-cabal
|
8 | 7 |
short_desc="Opinionated sugar for SQLite table definitions"
|
9 | 8 |
maintainer="Getty Ritter <electric-boogaloo-pkg@infinitenegativeutility.com>"
|
10 | 9 |
license="BSD"
|
|
12 | 11 |
distfiles="https://github.com/aisamanra/${pkgname}/archive/v${version}.tar.gz"
|
13 | 12 |
checksum=8d38a73ddccc2514c992c861c6eeff4746552ba40891795e639d92e64fa7c7d7
|
14 | 13 |
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 | |
}
|
2 | 2 |
pkgname=frontit
|
3 | 3 |
version=0.0.1
|
4 | 4 |
revision=2
|
| 5 |
build_style=haskell-cabal
|
5 | 6 |
hostmakedepends="ghc cabal-install git"
|
6 | 7 |
makedepends="zlib-devel"
|
7 | 8 |
depends=""
|
|
12 | 13 |
distfiles="https://github.com/aisamanra/${pkgname}/archive/v${version}.tar.gz"
|
13 | 14 |
checksum="23b8d9bf715420d2a0dfa8f00b7e315ed5dec81f3f0c7969d714e20a3017d891"
|
14 | 15 |
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 | |
}
|
3 | 3 |
version=1.0.4
|
4 | 4 |
revision=1
|
5 | 5 |
create_wrksrc=yes
|
| 6 |
build_style=haskell-cabal
|
6 | 7 |
hostmakedepends="ghc cabal-install"
|
7 | 8 |
makedepends="zlib-devel"
|
8 | 9 |
depends=""
|
|
14 | 15 |
checksum=c7c69299336f4951ba2d44f40b358a8f9c0c9750847f7c41fcb7b0d59eae2af2
|
15 | 16 |
nopie=yes
|
16 | 17 |
|
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() {
|
29 | 19 |
mkdir -p ${DESTDIR}/opt/inf/dict/static/
|
30 | 20 |
cp static/* ${DESTDIR}/opt/inf/dict/static/.
|
31 | 21 |
}
|
3 | 3 |
version=0.2
|
4 | 4 |
revision=2
|
5 | 5 |
nocross=yes
|
| 6 |
build_style=haskell-cabal
|
6 | 7 |
wrksrc="inf-blog-${version}"
|
7 | 8 |
hostmakedepends="cabal-install"
|
8 | 9 |
makedepends="ghc zlib-devel"
|
|
15 | 16 |
nopie=yes # network-2.6.2.1 build fails with a relocation
|
16 | 17 |
system_accounts="http"
|
17 | 18 |
|
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() {
|
30 | 20 |
mkdir -p ${DESTDIR}/opt/inf/blog/{static,log,snaplets/{sqlite-auth,sqlite-simple}}
|
31 | 21 |
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/.
|
34 | 22 |
cp ${wrksrc}/schema.sql ${DESTDIR}/opt/inf/blog/.
|
35 | 23 |
|
36 | 24 |
mkdir -p ${DESTDIR}/etc/sv/gdr-inf-blog
|
3 | 3 |
version="$(date +%F | sed 's/-//g')"
|
4 | 4 |
revision=1
|
5 | 5 |
hostmakedepends="ghc cabal-install git"
|
6 | |
makedepends=""
|
7 | |
depends=""
|
| 6 |
build_style=haskell-cabal
|
8 | 7 |
short_desc="Conversion program for TeLML"
|
9 | 8 |
maintainer="Getty Ritter <telml2html-pkg@infinitenegativeutility.com>"
|
10 | 9 |
license="BSD"
|
|
16 | 15 |
do_fetch() {
|
17 | 16 |
git clone https://git.gdritter.com/telml ${wrksrc}
|
18 | 17 |
}
|
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 | |
}
|
2 | 2 |
pkgname=xmobar
|
3 | 3 |
version=0.24.5
|
4 | 4 |
revision=2
|
| 5 |
build_style=haskell-cabal
|
5 | 6 |
hostmakedepends="pkg-config ghc cabal-install git"
|
6 | 7 |
makedepends="libX11-devel libXrandr-devel libXft-devel zlib-devel"
|
7 | |
depends=""
|
8 | 8 |
short_desc="A minimalistic status bar"
|
9 | 9 |
maintainer="Getty Ritter <xmobar-pkg@infinitenegativeutility.com>"
|
10 | 10 |
license="BSD-3"
|
|
13 | 13 |
checksum=3c406361971703345c291c7732e3969f38dcfd265ca53134b0bffe20e74c1ba1
|
14 | 14 |
nocross="yes"
|
15 | 15 |
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 | |
}
|