Blanket add all the build templates from mu
Getty Ritter
6 years ago
1 | # Template file for 'asn1c' | |
2 | pkgname=asn1c | |
3 | version=0.9.27 | |
4 | revision=1 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="autoconf" | |
7 | makedepends="" | |
8 | depends="" | |
9 | short_desc="ASN.1 compiler" | |
10 | maintainer="Getty Ritter <asn1c-pkg@infinitenegativeutility.com>" | |
11 | license="GPL-3" | |
12 | homepage="http://lionet.info/asn1c/" | |
13 | distfiles="https://github.com/vlm/asn1c/releases/download/v0.9.27/asn1c-0.9.27.tar.gz" | |
14 | checksum=025f64e1c27211b36e181350b52fde34ad23f4330fff96b2563ed3fda7b0db9e | |
15 | ||
16 | pre_configure() { | |
17 | test -f configure || autoreconf -iv | |
18 | } |
1 | # Template file for 'base-gdritter' | |
2 | pkgname=base-gdritter | |
3 | version=20160606 | |
4 | revision=1 | |
5 | build_style=meta | |
6 | noarch=yes | |
7 | depends="firefox emacs vim tmux mplayer mpd ncmpc mutt | |
8 | inkscape gimp audacity" | |
9 | short_desc="Basic packages in use for a new system" | |
10 | maintainer="Getty Ritter <base-gdritter-pkg@infinitenegativeutility.com>" | |
11 | license="BSD" | |
12 | homepage="http://gdritter.com/" |
1 | # Template file for 'birdfont' | |
2 | pkgname=birdfont | |
3 | version=2.19.0 | |
4 | revision=1 | |
5 | hostmakedepends="vala python3 doit pkg-config python3-setuptools" | |
6 | makedepends="libgee-devel libglib-devel gtk+3-devel webkit2gtk-devel libnotify-devel sqlite-devel cairo-devel xmlbird" | |
7 | depends="" | |
8 | short_desc="An editor for TTF, EOT, SVG, and BF fonts" | |
9 | maintainer="Getty Ritter <birdfont-pkg@infinitenegativeutility.com>" | |
10 | license="GPL-3" | |
11 | homepage="http://birdfont.org/" | |
12 | distfiles="https://github.com/jeohanmattssonm/${pkgname}/archive/v${version}.tar.gz" | |
13 | checksum=6f8004ce3f7ef25b3ea5af46726e611b500670ea0be5f57953503a9adaa23530 | |
14 | nopie=yes | |
15 | ||
16 | do_configure() { | |
17 | ./configure --prefix=${PREFIX} | |
18 | } | |
19 | ||
20 | do_build() { | |
21 | doit | |
22 | } | |
23 | ||
24 | do_install() { | |
25 | ./install.py --dest=${DESTDIR} | |
26 | mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share/man | |
27 | mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib | |
28 | } |
1 | # Template file for 'charter' | |
2 | pkgname=charter | |
3 | version="$(date +%F | sed 's/-//g')" | |
4 | revision=2 | |
5 | hostmakedepends="ghc cabal-install git" | |
6 | makedepends="" | |
7 | depends="" | |
8 | short_desc="Project template initializer for Haskell" | |
9 | maintainer="Getty Ritter <charter-pkg@infinitenegativeutility.com>" | |
10 | license="BSD" | |
11 | homepage="https://github.com/aisamanra/charter" | |
12 | nopie="yes" | |
13 | ||
14 | do_fetch() { | |
15 | git clone https://github.com/aisamanra/charter.git ${wrksrc} | |
16 | } | |
17 | ||
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/${pkgname}/${pkgname} | |
28 | vlicense LICENSE | |
29 | } |
1 | # Template file for 'creduce' | |
2 | pkgname=creduce | |
3 | version=2.5.0 | |
4 | revision=1 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="flex llvm perl clang" | |
7 | makedepends="zlib-devel ncurses-devel libllvm3.8" | |
8 | depends="" | |
9 | short_desc="Automatic reducer for C test cases" | |
10 | maintainer="Getty Ritter <creduce-pkg@infinitenegativeutility.com>" | |
11 | license="GPL-3" | |
12 | homepage="https://embed.cs.utah.edu/creduce/" | |
13 | distfiles="https://embed.cs.utah.edu/creduce/creduce-${version}.tar.gz" | |
14 | checksum=2dcd784e1d27df60f4ea1d92c4c556c02da4152db353d544dce8b7813fa443e4 |
1 | # Template file for 'csmith' | |
2 | pkgname=csmith | |
3 | version=2.2.0 | |
4 | revision=1 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="m4" | |
7 | makedepends="" | |
8 | depends="" | |
9 | short_desc="A fuzzing tool for random C99 programs" | |
10 | maintainer="Getty Ritter <csmith-pkg@infinitenegativeutility.com>" | |
11 | license="BSD" | |
12 | homepage="https://embed.cs.utah.edu/csmith/" | |
13 | distfiles="https://embed.cs.utah.edu/csmith/csmith-${version}.tar.gz" | |
14 | checksum=62fd96d3a5228241d4f3159511ad3ff5b8c4cedb9e9a82adc935830b421c8e37 |
1 | # Template file for 'cvc4' | |
2 | pkgname=cvc4 | |
3 | version=1.4 | |
4 | revision=1 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="wget" | |
7 | makedepends="gmp-devel gmpxx-devel boost-devel" | |
8 | depends="" | |
9 | short_desc="CVC4 is an efficient, open-source SMT solver." | |
10 | maintainer="Getty Ritter <cvc4-pkg@infinitenegativeutility.com>" | |
11 | license="GPL-3" | |
12 | homepage="http://cvc4.cs.nyu.edu/web/" | |
13 | distfiles="http://cvc4.cs.nyu.edu/builds/src/cvc4-1.4.tar.gz" | |
14 | checksum=76fe4ff9eb9ad7d65589efb47d41aae95f3191bd0d0c3940698a7cb2df3f7024 | |
15 | ||
16 | post_extract() | |
17 | { | |
18 | cd ${wrksrc}/contrib | |
19 | ./get-antlr-3.4 | |
20 | } | |
21 | ||
22 | do_configure() | |
23 | { | |
24 | ./configure ${configure_args} --with-antlr-dir=`pwd`/antlr-3.4 ANTLR=`pwd`/antlr-3.4/bin/antlr3 | |
25 | } |
1 | # Template file for 'datalog' | |
2 | pkgname=datalog | |
3 | version=2.6 | |
4 | revision=1 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="" | |
7 | makedepends="" | |
8 | depends="" | |
9 | short_desc="A lightweight deductive database system" | |
10 | maintainer="Getty Ritter <datalog-pkg@infinitenegativeutility.com>" | |
11 | license="GPL-3" | |
12 | homepage="http://www.ccs.neu.edu/home/ramsdell/tools/datalog/" | |
13 | distfiles="$SOURCEFORGE_SITE/${pkgname}/${pkgname}-${version}.tar.gz" | |
14 | checksum=062da47ea2d8b101e4984f417ea6cee768bdf999e523182d53237c2a856bbd4c |
1 | # Template file for 'doit' | |
2 | pkgname=doit | |
3 | version=0.30.3 | |
4 | revision=3 | |
5 | noarch=yes | |
6 | build_style=python3-module | |
7 | hostmakedepends="python3 python3-setuptools" | |
8 | makedepends="" | |
9 | depends="python3-inotify python3-cloudpickle" | |
10 | short_desc="Task management and automation tool" | |
11 | maintainer="Getty Ritter <doit-pkg@infinitenegativeutility.com>" | |
12 | license="MIT" | |
13 | homepage="http://pydoit.org/" | |
14 | distfiles="https://github.com/pydoit/${pkgname}/archive/${version}.tar.gz" | |
15 | checksum=5a730fcac8edfd7766e71d03cbb1118851d0b51e6fa69b0fe1582cafd52c98ed |
1 | # Template file for 'font-fira-code-otf' | |
2 | pkgname=font-fira-code-otf | |
3 | version=1.200 | |
4 | revision=2 | |
5 | create_wrksrc=yes | |
6 | hostmakedepends="" | |
7 | makedepends="" | |
8 | depends="font-util xbps-triggers" | |
9 | font_dirs="/usr/share/fonts/OTF" | |
10 | short_desc="Monospace font with programming ligatures" | |
11 | maintainer="Getty Ritter <font-fira-code-otf-pkg@infinitenegativeutility.com>" | |
12 | license="SIL" | |
13 | homepage="https://github.com/tonsky/FiraCode" | |
14 | distfiles="https://github.com/tonsky/FiraCode/archive/${version}.tar.gz" | |
15 | checksum=4b7a4da9cdcbde4bb7b7f2df9e6d278d86d933be603867ae1ca844a43138c0b1 | |
16 | ||
17 | do_install() { | |
18 | vmkdir usr/share/fonts/OTF | |
19 | ||
20 | for files in FiraCode-${version}/distr/otf/*; do | |
21 | vinstall ${files} 644 /usr/share/fonts/OTF | |
22 | done | |
23 | } |
1 | # Template file for 'font-fira-code-otf' | |
2 | pkgname=font-fira-code-ttf | |
3 | version=1.200 | |
4 | revision=1 | |
5 | create_wrksrc=yes | |
6 | hostmakedepends="" | |
7 | makedepends="" | |
8 | depends="font-util xbps-triggers" | |
9 | font_dirs="/usr/share/fonts/TTF" | |
10 | short_desc="Monospace font with programming ligatures" | |
11 | maintainer="Getty Ritter <font-fira-code-ttf-pkg@infinitenegativeutility.com>" | |
12 | license="SIL" | |
13 | homepage="https://github.com/tonsky/FiraCode" | |
14 | distfiles="https://github.com/tonsky/FiraCode/archive/${version}.tar.gz" | |
15 | checksum=4b7a4da9cdcbde4bb7b7f2df9e6d278d86d933be603867ae1ca844a43138c0b1 | |
16 | ||
17 | do_install() { | |
18 | vmkdir usr/share/fonts/TTF | |
19 | ||
20 | for files in FiraCode-${version}/distr/ttf/*; do | |
21 | vinstall ${files} 644 /usr/share/fonts/TTF | |
22 | done | |
23 | } |
1 | # Template file for 'electric-boogaloo' | |
2 | pkgname=frontit | |
3 | version=0.0.1 | |
4 | revision=2 | |
5 | hostmakedepends="ghc cabal-install git" | |
6 | makedepends="zlib-devel" | |
7 | depends="" | |
8 | short_desc="Alternate front-end for gitit wikis" | |
9 | maintainer="Getty Ritter <frontit-pkg@infinitenegativeutility.com>" | |
10 | license="GPL-3" | |
11 | homepage="https://github.com/aisamanra/frontit" | |
12 | distfiles="https://github.com/aisamanra/${pkgname}/archive/v${version}.tar.gz" | |
13 | checksum="23b8d9bf715420d2a0dfa8f00b7e315ed5dec81f3f0c7969d714e20a3017d891" | |
14 | 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 | } |
1 | # Template file for 'gdr-inf-dict' | |
2 | pkgname=gdr-inf-dict | |
3 | version=1.0.4 | |
4 | revision=1 | |
5 | create_wrksrc=yes | |
6 | hostmakedepends="ghc cabal-install" | |
7 | makedepends="zlib-devel" | |
8 | depends="" | |
9 | short_desc="Infinite negative utility dynamic dictionary site" | |
10 | maintainer="Getty Ritter <gdr-inf-dict-pkg@infinitenegativeutility.com>" | |
11 | license="BSD" | |
12 | homepage="http://dict.infinitenegativeutility.com/" | |
13 | distfiles="http://src.gdritter.com/inf-dict-${version}.tar.gz" | |
14 | checksum=c7c69299336f4951ba2d44f40b358a8f9c0c9750847f7c41fcb7b0d59eae2af2 | |
15 | nopie=yes | |
16 | ||
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 | |
29 | mkdir -p ${DESTDIR}/opt/inf/dict/static/ | |
30 | cp static/* ${DESTDIR}/opt/inf/dict/static/. | |
31 | } |
1 | # Template file for 'gdritter-frd-site' | |
2 | pkgname=gdritter-frd-site | |
3 | version= | |
4 | revision=1 | |
5 | #wrksrc= | |
6 | #create_wrksrc=yes | |
7 | #only_for_archs="i686 x86_64" | |
8 | build_style=haskell-stack | |
9 | #configure_args="" | |
10 | #make_build_args="" | |
11 | #make_install_args="" | |
12 | #conf_files="" | |
13 | #make_dirs="/var/log/dir 0755 root root" | |
14 | hostmakedepends="" | |
15 | makedepends="" | |
16 | depends="" | |
17 | short_desc="" | |
18 | maintainer="Getty Ritter <gdritter-frd-site-pkg@infinitenegativeutility.com>" | |
19 | license="GPL-3" | |
20 | homepage="" | |
21 | distfiles="" | |
22 | checksum="" | |
23 | ||
24 | function do_fetch { | |
25 | git clone | |
26 | } |
1 | # Template file for 'gdritter-inf-blog' | |
2 | pkgname=gdritter-inf-blog | |
3 | version=0.2 | |
4 | revision=2 | |
5 | nocross=yes | |
6 | wrksrc="inf-blog-${version}" | |
7 | hostmakedepends="cabal-install" | |
8 | makedepends="ghc zlib-devel" | |
9 | short_desc="Deployment package for blog.infinitenegativeutility.com" | |
10 | maintainer="Getty Ritter <gdritter-inf-blog-pkg@infinitenegativeutility.com>" | |
11 | license="Proprietary" | |
12 | homepage="http://blog.infinitenegativeutility.com/" | |
13 | distfiles="http://gdritter.com/inf-blog-${version}.tar.gz" | |
14 | checksum="dafec84b9e92c9a2f9f0de7bb3ee01407bb087de157f708d59e065ada8ce7781" | |
15 | nopie=yes # network-2.6.2.1 build fails with a relocation | |
16 | system_accounts="http" | |
17 | ||
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 | ||
30 | mkdir -p ${DESTDIR}/opt/inf/blog/{static,log,snaplets/{sqlite-auth,sqlite-simple}} | |
31 | 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 | cp ${wrksrc}/schema.sql ${DESTDIR}/opt/inf/blog/. | |
35 | ||
36 | mkdir -p ${DESTDIR}/etc/sv/gdr-inf-blog | |
37 | cp ${FILESDIR}/run ${DESTDIR}/etc/sv/gdr-inf-blog | |
38 | } |
1 | # Template file for 'gentoo' | |
2 | pkgname=gentoo | |
3 | version=0.20.7 | |
4 | revision=2 | |
5 | build_style=gnu-configure | |
6 | hostmakedepends="pkg-config" | |
7 | makedepends="gtk+3-devel" | |
8 | short_desc="Graphical file manager for Unix-like systems" | |
9 | maintainer="Getty Ritter <gentoo-pkg@infinitenegativeutility.com>" | |
10 | license="GPL-2" | |
11 | homepage="https://sourceforge.net/projects/gentoo/" | |
12 | distfiles="https://downloads.sourceforge.net/${pkgname}/${version}/${pkgname}-${version}.tar.gz" | |
13 | checksum=9a50a139509a2f7e4540c8a093105bd8dd432596c9903db24891fbacf28ab1aa |
1 | # Template file for 'glirc' | |
2 | pkgname=glirc | |
3 | version=2.11 | |
4 | revision=1 | |
5 | nocross=yes | |
6 | hostmakedepends="ghc cabal-install stack" | |
7 | makedepends="zlib-devel ncurses-devel ncurses-libs ncurses-term ncurses" | |
8 | wrksrc="irc-core-${version}" | |
9 | short_desc="Console IRC client" | |
10 | maintainer="Getty Ritter <glirc-pkg@infinitenegativeutility.com>" | |
11 | license="BSD" | |
12 | homepage="https://github.com/glguy/irc-core" | |
13 | distfiles="https://github.com/glguy/irc-core/archive/v${version}.tar.gz" | |
14 | checksum=99dac80875c8be52241cac7a613299ce6082595c3ccef13937fe32214d00485a | |
15 | nopie="yes" | |
16 | ||
17 | do_build() { | |
18 | stack init --resolver=ghc-8 --install-ghc | |
19 | stack build | |
20 | } | |
21 | ||
22 | do_install() { | |
23 | exit 99 | |
24 | } |
1 | # Template file for 'gr1c' | |
2 | pkgname=gr1c | |
3 | version=0.11.0 | |
4 | revision=1 | |
5 | build_style=gnu-makefile | |
6 | hostmakedepends="make gcc curl tar bison flex" | |
7 | makedepends="" | |
8 | depends="" | |
9 | short_desc="a collection of tools for GR(1) synthesis and related activities" | |
10 | maintainer="Getty Ritter <gr1c-pkg@infinitenegativeutility.com>" | |
11 | license="BSD" | |
12 | homepage="https://github.com/tulip-control/gr1c" | |
13 | distfiles="https://github.com/tulip-control/gr1c/archive/v0.11.0.tar.gz" | |
14 | checksum=2ca464600fec4801c06c6ffc11baa7a5f7d5529920b69e5c4036458f4b39d79b | |
15 | nopie=yes | |
16 | ||
17 | pre_build() { | |
18 | ./get-deps.sh | |
19 | } | |
20 | ||
21 | do_build() { | |
22 | ./build-deps.sh | |
23 | make ${makejobs} gr1c | |
24 | make ${makejobs} all | |
25 | } | |
26 | ||
27 | pre_install() { | |
28 | mkdir -p ${DESTDIR}/usr/bin | |
29 | } | |
30 | do_install() { | |
31 | make prefix="/usr" DESTDIR=${DESTDIR} install | |
32 | } |
1 | # Template file for 'ibus-table' | |
2 | pkgname=ibus-table | |
3 | version=1.9.12 | |
4 | revision=3 | |
5 | build_style=gnu-makefile | |
6 | hostmakedepends="python3 automake pkg-config" | |
7 | makedepends="gettext-devel ibus-devel" | |
8 | depends="ibus python3.4-gobject" | |
9 | short_desc="IM Engine framework for table-based input methods" | |
10 | maintainer="Getty Ritter <ibus-table-pkg@infinitenegativeutility.com>" | |
11 | license="LGPL" | |
12 | homepage="https://github.com/kaio/ibus-table" | |
13 | distfiles="https://github.com/kaio/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz" | |
14 | checksum=7879dc305bde4cd0aab20ce1437a59d32b1e00de5e4e66930a5a8ba43e5550cd | |
15 | ||
16 | do_configure() { | |
17 | PYTHON=/usr/bin/python3.4 ./autogen.sh --prefix=/usr --libexecdir=/usr/libexec | |
18 | } |
1 | # Template file for 'ibus-table-others' | |
2 | pkgname=ibus-table-others | |
3 | version=1.3.5 | |
4 | revision=1 | |
5 | build_style=gnu-makefile | |
6 | hostmakedepends="python3 automake pkg-config" | |
7 | makedepends="ibus-table" | |
8 | depends="ibus" | |
9 | short_desc="IM Engine framework for table-based input methods" | |
10 | maintainer="Getty Ritter <ibus-table-others-pkg@infinitenegativeutility.com>" | |
11 | license="GPL-3" | |
12 | homepage="https://github.com/kaio/ibus-table" | |
13 | distfiles="https://github.com/moebiuscurve/${pkgname}/archive/${version}.tar.gz" | |
14 | checksum=528caf645abcecf5a7622c39666935871363e698976059d89d560b8fe7325a0e | |
15 | ||
16 | do_configure() { | |
17 | ./autogen.sh --prefix=/usr --libexecdir=/usr/libexec | |
18 | } |
1 | #recheck extra-deps next on resolver or cabal file change | |
2 | resolver: lts-9.0 | |
3 | ||
4 | packages: | |
5 | - location: . | |
6 | ||
7 | flags: | |
8 | idris: | |
9 | FFI: true | |
10 | GMP: true | |
11 | ||
12 | extra-deps: | |
13 | - binary-0.8.5.1 | |
14 | - cheapskate-0.1.1 | |
15 | ||
16 | nix: | |
17 | enable: false | |
18 | shell-file: stack-shell.nix |
1 | # Template file for 'idris' | |
2 | pkgname=idris | |
3 | version=1.1.0 | |
4 | revision=1 | |
5 | build_style=haskell-stack | |
6 | hostmakedepends="ghc stack pkg-config" | |
7 | makedepends="zlib-devel ncurses-devel" | |
8 | short_desc="A dependently typed functional programming language" | |
9 | maintainer="Getty Ritter <idris-pkg@infinitenegativeutility.com>" | |
10 | license="BSD-3" | |
11 | homepage="http://www.idris-lang.org/" | |
12 | distfiles="https://github.com/idris-lang/Idris-dev/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" | |
13 | checksum=74d4a4fdfb4cb8cf86d3ea0487044fc58c65565f29a46ef1fc1a635fefab7df0 | |
14 | nopie=yes | |
15 | ||
16 | function post_extract { | |
17 | mv /builddir/Idris-dev-${version} /builddir/${pkgname}-${version} | |
18 | } |
1 | # Template file for 'matrix-synapse' | |
2 | pkgname=matrix-synapse | |
3 | version=0.14.0 | |
4 | revision=2 | |
5 | noarch=yes | |
6 | build_style=python-module | |
7 | hostmakedepends="python-setuptools asciidoc" | |
8 | depends="python Twisted " | |
9 | short_desc="Matrix protocol reference homeserver" | |
10 | maintainer="Getty Ritter <matrix-synapse-pkg@infinitenegativeutility.com>" | |
11 | homepage="https://matrix.org/blog/project/synapse/" | |
12 | license="Apache" | |
13 | distfiles="https://github.com/matrix-org/synapse/archive/v${version}.tar.gz" | |
14 | checksum=c5bed7242c9da0e5833da0a45454a2168062a3b204b6a779de7a6c228312d947 | |
15 | ||
16 | post_extract() { | |
17 | mv /builddir/synapse-${version} /builddir/${pkgname}-${version} | |
18 | } |
1 | # INSTALL | |
2 | case "$ACTION" in | |
3 | pre) | |
4 | ;; | |
5 | post) | |
6 | chown -R mattermost:mattermost /opt/mattermost | |
7 | ;; | |
8 | esac |
1 | # Template file for 'mattermost' | |
2 | pkgname=mattermost | |
3 | version=4.7.1 | |
4 | revision=1 | |
5 | create_wrksrc=yes | |
6 | build_style=gnu-makefile | |
7 | hostmakedepends="yarn go git docker zip python nodejs" | |
8 | makedepends="libpng12-devel" | |
9 | depends="" | |
10 | short_desc="Open-source, self-hosted team chat" | |
11 | maintainer="Getty Ritter <mattermost-pkg@infinitenegativeutility.com>" | |
12 | license="MIT" | |
13 | homepage="https://about.mattermost.com/" | |
14 | distfiles=" | |
15 | https://github.com/mattermost/mattermost-server/archive/v${version}.tar.gz>server.tar.gz | |
16 | https://github.com/mattermost/mattermost-webapp/archive/v${version}.tar.gz>webapp.tar.gz" | |
17 | checksum=" | |
18 | b938f2520147dcefca6effecfb99b4bcd7e0f5133cec913d0e937adc0fdf4c78 | |
19 | acaa5c7a079f5c62a0f32c76ff82be1506e2c8490c7e33453d4d652d0f45f418" | |
20 | nopie=true | |
21 | ||
22 | system_accounts="mattermost" | |
23 | mattermost_homedir="/opt/mattermost" | |
24 | mattermost_shell="/bin/sh" | |
25 | mattermost_descr="Mattermost user" | |
26 | GOOS=linux | |
27 | GOARCH=amd64 | |
28 | ||
29 | do_configure() { | |
30 | mkdir -p ${wrksrc}/src/github.com/mattermost | |
31 | cd ${wrksrc}/src/github.com/mattermost | |
32 | mv ${wrksrc}/mattermost-server-${version} ${pkgname}-server | |
33 | mv ${wrksrc}/mattermost-webapp-${version} ${pkgname}-webapp | |
34 | cd ${pkgname}-server | |
35 | sed -r -i Makefile -e 's/^clean: stop-docker/clean:/' | |
36 | sed -r -i build/release.mk \ | |
37 | -e 's/\$\(DIST_PATH\)\/config\/config.json/\$\(DIST_PATH\)\/config\/default.json/' | |
38 | ||
39 | # Remove platform specific lines from the Makefile from the line beginning | |
40 | # with that statement to the end of file (we do not care of the additional | |
41 | # file copy, nor the tar compression defined below the file). | |
42 | sed -i build/release.mk \ | |
43 | -e '/# ----- PLATFORM SPECIFIC -----/,//d' | |
44 | ||
45 | make clean || true | |
46 | ||
47 | } | |
48 | ||
49 | do_build() { | |
50 | export GOOS=linux | |
51 | export GOARCH=amd64 | |
52 | cd "${wrksrc}/src/github.com/mattermost/${pkgname}-server" | |
53 | GOPATH=${wrksrc} make ${makejobs} ${make_build_args} build-linux | |
54 | GOPATH=${wrksrc} make ${makejobs} ${make_build_args} build-client | |
55 | GOPATH=${wrksrc} make ${makejobs} ${make_build_args} package | |
56 | } | |
57 | ||
58 | do_install() { | |
59 | cd "${wrksrc}/src/github.com/mattermost/${pkgname}-server" | |
60 | mkdir -p ${DESTDIR}/opt/ | |
61 | cp -a dist/mattermost ${DESTDIR}/opt/mattermost | |
62 | vinstall "${wrksrc}/bin/platform" 755 /opt/mattermost/bin/ | |
63 | } |
1 | # Template file for 'mlton' | |
2 | pkgname=mlton | |
3 | version=20180207 | |
4 | revision=1 | |
5 | only_for_archs="i686 x86_64" | |
6 | make_build_target="smlnj-mlton" | |
7 | hostmakedepends="sml-nj" | |
8 | makedepends="gmp-devel" | |
9 | depends="" | |
10 | short_desc="An open-source, whole-program, optimizing Standard ML compiler." | |
11 | maintainer="Getty Ritter <mlton-pkg@infinitenegativeutility.com>" | |
12 | license="argl" | |
13 | homepage="http://mlton.org/" | |
14 | distfiles="https://github.com/MLton/${pkgname}/archive/on-${version}-release.tar.gz" | |
15 | checksum=f107212bd332903754edee2301f570a28e1c8610a01ee4eab02443d43ba42ed0 | |
16 | ||
17 | function post_extract { | |
18 | mv ${XBPS_BUILDDIR}/mlton-on-${version}-release ${wrksrc} | |
19 | } | |
20 | ||
21 | function do_build { | |
22 | for file in $(find . -name Makefile); do | |
23 | sed -i 's/LEX := .*/LEX := ml-lex/g' ${file} | |
24 | sed -i 's/YACC := .*/YACC := ml-yacc/g' ${file} | |
25 | done | |
26 | make ${makejobs} ${make_build_args} smlnj-mlton | |
27 | } | |
28 | ||
29 | function do_install { | |
30 | return 99 | |
31 | } |
1 | # Template file for 'NetBeans' | |
2 | pkgname=netbeans | |
3 | version=8.2 | |
4 | _subver=201609300101 | |
5 | revision=1 | |
6 | # wrksrc="netbeans" | |
7 | create_wrksrc=yes | |
8 | hostmakedepends="unzip openjdk apache-ant" | |
9 | makedepends="" | |
10 | depends="virtual?java-environment" | |
11 | short_desc="Java IDE" | |
12 | maintainer="Getty Ritter <netbeans-pkg@infinitenegativeutility.com>" | |
13 | license="GPL-3" | |
14 | homepage="https://netbeans.org/" | |
15 | distfiles="http://download.netbeans.org/netbeans/${version}/final/zip/netbeans-${version}-${_subver}-src.zip" | |
16 | checksum=5a7141176fe655807f04bdde12073116a77c1844e4ca7a071d95930b7cd7d5ac | |
17 | nopie=yes | |
18 | ||
19 | do_install() { | |
20 | ANT_OPTS="-Xmx1G" ant build | |
21 | return 77 | |
22 | } | |
23 | ||
24 | # do_install() { | |
25 | # vbin ./bin/${pkgname} | |
26 | # vmkdir /usr/share/${pkgname} | |
27 | # vcopy . /usr/share/${pkgname} | |
28 | # rm -rf ${DESTDIR}/usr/share/bin | |
29 | # for dir in $(find ${DESTDIR} -iname '*linux-arm*'); do | |
30 | # rm -rf "${dir}" | |
31 | # done | |
32 | # for dir in $(find ${DESTDIR} -name '*risc*'); do | |
33 | # rm -rf "${dir}" | |
34 | # done | |
35 | # for dir in $(find ${DESTDIR} -name '*sparc*'); do | |
36 | # rm -rf "${dir}" | |
37 | # done | |
38 | # } |
1 | # Template file for 'ntl' | |
2 | pkgname=ntl | |
3 | version=10.3.0 | |
4 | revision=1 | |
5 | build_wrksrc="src" | |
6 | build_style=configure | |
7 | hostmakedepends="perl" | |
8 | configure_args="DEF_PREFIX=/usr" | |
9 | makedepends="gmp-devel" | |
10 | depends="" | |
11 | short_desc="A high-performance library for number theory" | |
12 | maintainer="Getty Ritter <ntl-pkg@infinitenegativeutility.com>" | |
13 | license="LGPL-2" | |
14 | homepage="http://www.shoup.net/ntl/" | |
15 | distfiles="http://www.shoup.net/ntl/${pkgname}-${version}.tar.gz" | |
16 | checksum=717b8d519d66f383a6ae938e255ee4dd103dbab77e4e828dc9cbb0749ec4c1f4 | |
17 | ||
18 | ntl-devel_package() { | |
19 | short_det+=" - development files" | |
20 | depends="${sourcepkg}>=${version}_${revision}" | |
21 | pkg_install() { | |
22 | vmove usr/include | |
23 | vmove usr/lib/*.a | |
24 | } | |
25 | } |
1 | # Template file for 'ntl' | |
2 | pkgname=ntl | |
3 | version=10.3.0 | |
4 | revision=1 | |
5 | build_wrksrc="src" | |
6 | build_style=configure | |
7 | hostmakedepends="perl" | |
8 | configure_args="DEF_PREFIX=/usr" | |
9 | makedepends="gmp-devel" | |
10 | depends="" | |
11 | short_desc="A high-performance library for number theory" | |
12 | maintainer="Getty Ritter <ntl-devel-pkg@infinitenegativeutility.com>" | |
13 | license="LGPL-2" | |
14 | homepage="http://www.shoup.net/ntl/" | |
15 | distfiles="http://www.shoup.net/ntl/${pkgname}-${version}.tar.gz" | |
16 | checksum=717b8d519d66f383a6ae938e255ee4dd103dbab77e4e828dc9cbb0749ec4c1f4 | |
17 | ||
18 | ntl-devel_package() { | |
19 | short_det+=" - development files" | |
20 | depends="${sourcepkg}>=${version}_${revision}" | |
21 | pkg_install() { | |
22 | vmove usr/include | |
23 | vmove usr/lib/*.a | |
24 | } | |
25 | } |
1 | # Template file for 'slugs' | |
2 | pkgname=slugs | |
3 | version=0.9 | |
4 | revision=1 | |
5 | hostmakedepends="" | |
6 | makedepends="boost-devel" | |
7 | depends="" | |
8 | short_desc="Small but complete GROne synthesizer" | |
9 | maintainer="Getty Ritter <slugs-pkg@infinitenegativeutility.com>" | |
10 | license="GPL-3" | |
11 | homepage="https://github.com/VerifiableRobotics/slugs" | |
12 | distfiles="https://github.com/VerifiableRobotics/${pkgname}/archive/v${version}.tar.gz" | |
13 | checksum=428d03246367c9651972200eb43600ddfe81060f45fdc51be258befe9190dddb | |
14 | nopie=yes | |
15 | ||
16 | do_build() { | |
17 | cd src | |
18 | make ${make_install_args} | |
19 | } | |
20 | ||
21 | do_install() { | |
22 | vbin src/slugs | |
23 | } |
1 | # Template file for 'sway' | |
2 | pkgname=sway-git | |
3 | version="$(date +%F | sed 's/-//g')" | |
4 | revision=1 | |
5 | build_style=cmake | |
6 | configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc" | |
7 | hostmakedepends="asciidoc pkg-config wayland-devel git" | |
8 | makedepends="libcap-devel wlc-devel gdk-pixbuf-devel json-c-devel pango-devel pam-devel" | |
9 | conf_files="/etc/sway/config /etc/pam.d/swaylock" | |
10 | short_desc="i3 compatible window manager for Wayland" | |
11 | maintainer="Getty Ritter <sway-git-pkg@infinitenegativeutility.com>" | |
12 | license="MIT" | |
13 | homepage="http://swaywm.org" | |
14 | ||
15 | do_fetch() { | |
16 | git clone https://github.com/SirCmpwn/sway.git ${wrksrc} | |
17 | } | |
18 | ||
19 | post_install() { | |
20 | vlicense LICENSE | |
21 | # must be setuid without logind! | |
22 | chmod u+s ${DESTDIR}/usr/bin/sway | |
23 | } |
1 | # Template file for 'electric-boogaloo' | |
2 | pkgname=telml2html | |
3 | version="$(date +%F | sed 's/-//g')" | |
4 | revision=1 | |
5 | hostmakedepends="ghc cabal-install git" | |
6 | makedepends="" | |
7 | depends="" | |
8 | short_desc="Conversion program for TeLML" | |
9 | maintainer="Getty Ritter <telml2html-pkg@infinitenegativeutility.com>" | |
10 | license="BSD" | |
11 | homepage="https://github.com/aisamanra/telml" | |
12 | distfiles="" | |
13 | checksum="" | |
14 | nopie="yes" | |
15 | ||
16 | do_fetch() { | |
17 | git clone https://git.gdritter.com/telml ${wrksrc} | |
18 | } | |
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 | } |
1 | # Template file for 'xmlbird' | |
2 | pkgname=xmlbird | |
3 | version=1.2.4 | |
4 | revision=1 | |
5 | hostmakedepends="vala python3 doit python3-setuptools pkg-config" | |
6 | makedepends="libglib-devel" | |
7 | depends="" | |
8 | short_desc="A Vala and C library for XML parsing" | |
9 | maintainer="Getty Ritter <xmlbird-pkg@infinitenegativeutility.com>" | |
10 | license="GPL-3" | |
11 | homepage="http://birdfont.org/xmlbird.php" | |
12 | distfiles="https://github.com/johanmattssonm/${pkgname}/archive/v${version}.tar.gz" | |
13 | checksum=4aa0fad4639b25e8acce2a92c7ddb85438ffe2070e5434a838d34f28fff43456 | |
14 | ||
15 | do_configure() { | |
16 | ./configure --prefix=${PREFIX} | |
17 | } | |
18 | ||
19 | do_build() { | |
20 | doit | |
21 | } | |
22 | ||
23 | do_install() { | |
24 | ./install.py --dest=${DESTDIR} | |
25 | mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib | |
26 | } |
1 | # Template file for 'xmobar' | |
2 | pkgname=xmobar | |
3 | version=0.24.5 | |
4 | revision=2 | |
5 | hostmakedepends="pkg-config ghc cabal-install git" | |
6 | makedepends="libX11-devel libXrandr-devel libXft-devel zlib-devel" | |
7 | depends="" | |
8 | short_desc="A minimalistic status bar" | |
9 | maintainer="Getty Ritter <xmobar-pkg@infinitenegativeutility.com>" | |
10 | license="BSD-3" | |
11 | homepage="https://xmobar.org/" | |
12 | distfiles="https://github.com/jaor/xmobar/archive/${version}.tar.gz" | |
13 | checksum=3c406361971703345c291c7732e3969f38dcfd265ca53134b0bffe20e74c1ba1 | |
14 | nocross="yes" | |
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 | } |