Remilia's SlackBuild packages for Slackware Linux
修订版 | 40a7fd0a887e1676b8a0aa63a9bfb47bde1eb203 (tree) |
---|---|
时间 | 2023-06-12 14:07:37 |
作者 | Remilia Scarlet <remilia@post...> |
Commiter | Remilia Scarlet |
Change directory tree. Add README.
@@ -0,0 +1,5 @@ | ||
1 | +# Remilia's SlackBuilds | |
2 | + | |
3 | +These are various SlackBuilds that I've written and maintain for Slackware | |
4 | +Linux. Unless otherwise specified in their README file, these are for the | |
5 | +current stable version of Slackware. |
@@ -0,0 +1,31 @@ | ||
1 | +Benben is a command line VGM player for Linux that uses YunoSynth for its VGM | |
2 | +playback engine. It also supports bulk conversion to WAV and Au formats. It is | |
3 | +written entirely in the Crystal programming language. | |
4 | + | |
5 | +In addition to uncompressed VGM and GZipped VGZ files, Benben also supports | |
6 | +files compressed with bzip2 and ZStandard. | |
7 | + | |
8 | +Many, but not all, of the chips the VGM standard supports are implemented, and | |
9 | +so a large number of VGM files are playable. Currently, emulators for these | |
10 | +chips are implemented: | |
11 | + | |
12 | +* Capcom DL-1425 QSound | |
13 | +* General Instruments AY-1-8910 and similar | |
14 | +* Hudson HuC6280 (two different cores) | |
15 | +* Irem GA20 | |
16 | +* Konami K051649 | |
17 | +* Konami K054539 | |
18 | +* Konami K053260 | |
19 | +* Namco C140 / Namco 219 ASIC | |
20 | +* Namco C352 | |
21 | +* NEC uPD7759 | |
22 | +* Nintendo GameBoy | |
23 | +* OKI MSM6258 | |
24 | +* OKI MSM6295 | |
25 | +* Sega SegaPCM | |
26 | +* Sega MultiPCM | |
27 | +* Yamaha YM2151 | |
28 | +* Yamaha YM2203 | |
29 | +* Yamaha YM2608 | |
30 | +* Yamaha YMZ280B | |
31 | +* Yamaha YM2610/YM2610B |
@@ -0,0 +1,165 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | +# Slackware build script for Benben | |
4 | +# | |
5 | +# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | +# All rights reserved. | |
7 | +# | |
8 | +# Redistribution and use of this script, with or without modification, is | |
9 | +# permitted provided that the following conditions are met: | |
10 | +# | |
11 | +# 1. Redistributions of this script must retain the above copyright | |
12 | +# notice, this list of conditions and the following disclaimer. | |
13 | +# | |
14 | +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | +cd $(dirname $0) ; CWD=$(pwd) | |
25 | + | |
26 | +PRGNAM=benben # replace with name of program | |
27 | +VERSION=${VERSION:-0.1.0} # replace with version of program | |
28 | +BUILD=${BUILD:-1} | |
29 | +TAG=${TAG:-_SBo} # the "_SBo" is required | |
30 | +PKGTYPE=${PKGTYPE:-tgz} | |
31 | +BENBEN_DEP_SOURCES="libremiliacr-0.10.0.tar.bz2 \ | |
32 | + remiaudio-0.2.1.tar.bz2 \ | |
33 | + remiconf-0.1.2.tar.bz2 \ | |
34 | + remihjson--fdd7d725aa.tar.gz \ | |
35 | + remiportaudio-0.1.1.tar.bz2 \ | |
36 | + remixspf-0.1.1.tar.bz2 \ | |
37 | + yunosynth-0.1.0.tar.bz2 \ | |
38 | + zstd.cr-1.2.0.tar.gz" | |
39 | + | |
40 | +# Automatically determine the architecture we're building on: | |
41 | +if [ -z "$ARCH" ]; then | |
42 | + case "$( uname -m )" in | |
43 | + i?86) ARCH=i586 ;; | |
44 | + arm*) ARCH=arm ;; | |
45 | + # Unless $ARCH is already set, use uname -m for all other archs: | |
46 | + *) ARCH=$( uname -m ) ;; | |
47 | + esac | |
48 | +fi | |
49 | + | |
50 | +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
51 | +# the name of the created package would be, and then exit. This information | |
52 | +# could be useful to other scripts. | |
53 | +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
54 | + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
55 | + exit 0 | |
56 | +fi | |
57 | + | |
58 | +TMP=${TMP:-/tmp/SBo} | |
59 | +PKG=$TMP/package-$PRGNAM | |
60 | +OUTPUT=${OUTPUT:-/tmp} | |
61 | + | |
62 | +if [ "$ARCH" = "i686" ]; then | |
63 | + CRYSTAL_SLACK_FLAGS="--mcpu=x86" | |
64 | +elif [ "$ARCH" = "x86_64" ]; then | |
65 | + CRYSTAL_SLACK_FLAGS="--mcpu=x86-64" | |
66 | +elif [ "$ARCH" = "aarch64" ]; then | |
67 | + CRYSTAL_SLACK_FLAGS="--mcpu=aarch64" | |
68 | +else | |
69 | + CRYSTAL_SLACK_FLAGS="" | |
70 | +fi | |
71 | + | |
72 | +set -e # Exit on most errors | |
73 | + | |
74 | +rm -rf $PKG | |
75 | +mkdir -p $TMP $PKG $OUTPUT | |
76 | +cd $TMP | |
77 | +rm -rf $PRGNAM-$VERSION | |
78 | +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 | |
79 | +cd $PRGNAM-$VERSION | |
80 | +chown -R root:root . | |
81 | +find -L . \ | |
82 | + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
83 | + -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
84 | + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
85 | + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
86 | + | |
87 | +# Make a lib directory, then unpack dependencies into the correct place, and add | |
88 | +# a required symlink. This replicates what the Shards command normally does | |
89 | +# when building Crystal software. | |
90 | +mkdir -p lib | |
91 | +for depSrc in $BENBEN_DEP_SOURCES; do | |
92 | + cp $CWD/$depSrc lib | |
93 | + ( | |
94 | + cd lib | |
95 | + tar xvzf $depSrc || tar xvjf $depSrc | |
96 | + ) | |
97 | +done | |
98 | + | |
99 | +( | |
100 | + cd lib | |
101 | + mv remihjson--fdd7d725aa remihjson | |
102 | + mv zstd.cr-1.2.0 zstd | |
103 | + | |
104 | + # The ../ actually points to the lib directory we've created | |
105 | + ln -s ../ libremiliacr/lib | |
106 | + ln -s ../ remiaudio/lib | |
107 | + ln -s ../ remiconf/lib | |
108 | + ln -s ../ remihjson/lib | |
109 | + ln -s ../ remiportaudio/lib | |
110 | + ln -s ../ remixspf/lib | |
111 | + ln -s ../ yunosynth/lib | |
112 | + ln -s ../ zstd/lib | |
113 | +) | |
114 | + | |
115 | +### | |
116 | +### NOTE: Technically the zstd.cr bindings have a postinstall script specified | |
117 | +### in shard.yml that creates a local copy of the ZStandard library. However, | |
118 | +### this isn't needed for Slackware and is thus skipped. | |
119 | +### | |
120 | + | |
121 | +# Build the program | |
122 | +mkdir bin | |
123 | +echo "Building Benben" | |
124 | +CRYSTAL_OPTS="$CRYSTAL_SLACK_FLAGS" \ | |
125 | +crystal \ | |
126 | + build \ | |
127 | + -Dpreview_mt \ | |
128 | + -Dbenben_wd40 \ | |
129 | + -Dyunosynth_wd40 \ | |
130 | + --release \ | |
131 | + --no-debug \ | |
132 | + -p \ | |
133 | + -o bin/$PRGNAM \ | |
134 | + src/main.cr | |
135 | + | |
136 | +# Copy the program, man pages, etc. into the $PKG directory | |
137 | +mkdir -p $PKG/usr/bin | |
138 | +cp -v bin/$PRGNAM $PKG/usr/bin | |
139 | +mkdir -p $PKG/usr/man/man1 | |
140 | +cp -v man/$PRGNAM.1.gz $PKG/usr/man/man1 | |
141 | + | |
142 | +# Strip binaries and libraries - this can be done with 'make install-strip' | |
143 | +# in many source trees, and that's usually acceptable if so, but if not, | |
144 | +# use this: | |
145 | +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
146 | + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
147 | + | |
148 | +# Copy program documentation into the package | |
149 | +# The included documentation varies from one application to another, so be sure | |
150 | +# to adjust your script as needed | |
151 | +# Also, include the SlackBuild script in the documentation directory | |
152 | +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
153 | +cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION | |
154 | +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
155 | + | |
156 | +# Copy the slack-desc into ./install | |
157 | +mkdir -p $PKG/install | |
158 | +cat $CWD/slack-desc > $PKG/install/slack-desc | |
159 | + | |
160 | +# Make the package; be sure to leave it in $OUTPUT | |
161 | +# If package symlinks need to be created during install *before* | |
162 | +# your custom contents of doinst.sh runs, then add the -p switch to | |
163 | +# the makepkg command below -- see makepkg(8) for details | |
164 | +cd $PKG | |
165 | +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -0,0 +1,26 @@ | ||
1 | +PRGNAM="benben" | |
2 | +VERSION="0.1.0" | |
3 | +HOMEPAGE="https://chiselapp.com/user/MistressRemilia/repository/benben" | |
4 | +DOWNLOAD="https://chiselapp.com/user/MistressRemilia/repository/benben/uv/benben-0.1.0.tar.bz2 \ | |
5 | + https://chiselapp.com/user/MistressRemilia/repository/libremiliacr/uv/libremiliacr-0.10.0.tar.bz2 \ | |
6 | + https://chiselapp.com/user/MistressRemilia/repository/remiaudio/uv/remiaudio-0.2.1.tar.bz2 \ | |
7 | + https://chiselapp.com/user/MistressRemilia/repository/remiconf/uv/remiconf-0.1.2.tar.bz2 \ | |
8 | + https://chiselapp.com/user/MistressRemilia/repository/remihjson/tarball/fdd7d725aa/remihjson--fdd7d725aa.tar.gz \ | |
9 | + https://chiselapp.com/user/MistressRemilia/repository/remiportaudio/uv/remiportaudio-0.1.1.tar.bz2 \ | |
10 | + https://chiselapp.com/user/MistressRemilia/repository/remixspf/uv/remixspf-0.1.1.tar.bz2 \ | |
11 | + https://chiselapp.com/user/MistressRemilia/repository/yunosynth/uv/yunosynth-0.1.0.tar.bz2 \ | |
12 | + https://github.com/didactic-drunk/zstd.cr/archive/refs/tags/v1.2.0.tar.gz" | |
13 | +MD5SUM="fc4bef21e5236f391f415a805916d276 \ | |
14 | + 5ad8259c566ab983375a58573e297c12 \ | |
15 | + 0a38272e1f11cfee71bbf1f953931226 \ | |
16 | + 74557a7930e5dcd08a908722ee648041 \ | |
17 | + d6fac2a9cac7ccac2efa11585001802f \ | |
18 | + 4306241cb935965c85b471d1bad3f86d \ | |
19 | + a25b39e41552daf7d608bd0aaef53234 \ | |
20 | + 3c2b046d3e2c80b76107874179f201f8 | |
21 | + 7ea965124bad09458a32cf5b9174e1e3" | |
22 | +DOWNLOAD_x86_64="" | |
23 | +MD5SUM_x86_64="" | |
24 | +REQUIRES="crystal-lang" | |
25 | +MAINTAINER="Remilia Scarlet" | |
26 | +EMAIL="remilia@sdf.org" |
@@ -0,0 +1,19 @@ | ||
1 | +# HOW TO EDIT THIS FILE: | |
2 | +# The "handy ruler" below makes it easier to edit a package description. | |
3 | +# Line up the first '|' above the ':' following the base package name, and | |
4 | +# the '|' on the right side marks the last column you can put a character in. | |
5 | +# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | +# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | + | |
8 | + |-----handy-ruler------------------------------------------------------| | |
9 | +benben: Benben (a command line VGM player and converter) | |
10 | +benben: | |
11 | +benben: Benben is a command line program that can play VGM files, as well as | |
12 | +benben: bulk-convert them to WAV or Au format. | |
13 | +benben: | |
14 | +benben: While not all VGM files are supported, a great many already are, and | |
15 | +benben: more chips are being added as time goes on. | |
16 | +benben: | |
17 | +benben: Homepage: | |
18 | +benben: https://chiselapp.com/user/MistressRemilia/repository/benben/ | |
19 | +benben: | |
\ No newline at end of file |
@@ -1,31 +0,0 @@ | ||
1 | -Benben is a command line VGM player for Linux that uses YunoSynth for its VGM | |
2 | -playback engine. It also supports bulk conversion to WAV and Au formats. It is | |
3 | -written entirely in the Crystal programming language. | |
4 | - | |
5 | -In addition to uncompressed VGM and GZipped VGZ files, Benben also supports | |
6 | -files compressed with bzip2 and ZStandard. | |
7 | - | |
8 | -Many, but not all, of the chips the VGM standard supports are implemented, and | |
9 | -so a large number of VGM files are playable. Currently, emulators for these | |
10 | -chips are implemented: | |
11 | - | |
12 | -* Capcom DL-1425 QSound | |
13 | -* General Instruments AY-1-8910 and similar | |
14 | -* Hudson HuC6280 (two different cores) | |
15 | -* Irem GA20 | |
16 | -* Konami K051649 | |
17 | -* Konami K054539 | |
18 | -* Konami K053260 | |
19 | -* Namco C140 / Namco 219 ASIC | |
20 | -* Namco C352 | |
21 | -* NEC uPD7759 | |
22 | -* Nintendo GameBoy | |
23 | -* OKI MSM6258 | |
24 | -* OKI MSM6295 | |
25 | -* Sega SegaPCM | |
26 | -* Sega MultiPCM | |
27 | -* Yamaha YM2151 | |
28 | -* Yamaha YM2203 | |
29 | -* Yamaha YM2608 | |
30 | -* Yamaha YMZ280B | |
31 | -* Yamaha YM2610/YM2610B |
@@ -1,165 +0,0 @@ | ||
1 | -#!/bin/bash | |
2 | - | |
3 | -# Slackware build script for Benben | |
4 | -# | |
5 | -# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | -# All rights reserved. | |
7 | -# | |
8 | -# Redistribution and use of this script, with or without modification, is | |
9 | -# permitted provided that the following conditions are met: | |
10 | -# | |
11 | -# 1. Redistributions of this script must retain the above copyright | |
12 | -# notice, this list of conditions and the following disclaimer. | |
13 | -# | |
14 | -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | -cd $(dirname $0) ; CWD=$(pwd) | |
25 | - | |
26 | -PRGNAM=benben # replace with name of program | |
27 | -VERSION=${VERSION:-0.1.0} # replace with version of program | |
28 | -BUILD=${BUILD:-1} | |
29 | -TAG=${TAG:-_SBo} # the "_SBo" is required | |
30 | -PKGTYPE=${PKGTYPE:-tgz} | |
31 | -BENBEN_DEP_SOURCES="libremiliacr-0.10.0.tar.bz2 \ | |
32 | - remiaudio-0.2.1.tar.bz2 \ | |
33 | - remiconf-0.1.2.tar.bz2 \ | |
34 | - remihjson--fdd7d725aa.tar.gz \ | |
35 | - remiportaudio-0.1.1.tar.bz2 \ | |
36 | - remixspf-0.1.1.tar.bz2 \ | |
37 | - yunosynth-0.1.0.tar.bz2 \ | |
38 | - zstd.cr-1.2.0.tar.gz" | |
39 | - | |
40 | -# Automatically determine the architecture we're building on: | |
41 | -if [ -z "$ARCH" ]; then | |
42 | - case "$( uname -m )" in | |
43 | - i?86) ARCH=i586 ;; | |
44 | - arm*) ARCH=arm ;; | |
45 | - # Unless $ARCH is already set, use uname -m for all other archs: | |
46 | - *) ARCH=$( uname -m ) ;; | |
47 | - esac | |
48 | -fi | |
49 | - | |
50 | -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
51 | -# the name of the created package would be, and then exit. This information | |
52 | -# could be useful to other scripts. | |
53 | -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
54 | - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
55 | - exit 0 | |
56 | -fi | |
57 | - | |
58 | -TMP=${TMP:-/tmp/SBo} | |
59 | -PKG=$TMP/package-$PRGNAM | |
60 | -OUTPUT=${OUTPUT:-/tmp} | |
61 | - | |
62 | -if [ "$ARCH" = "i686" ]; then | |
63 | - CRYSTAL_SLACK_FLAGS="--mcpu=x86" | |
64 | -elif [ "$ARCH" = "x86_64" ]; then | |
65 | - CRYSTAL_SLACK_FLAGS="--mcpu=x86-64" | |
66 | -elif [ "$ARCH" = "aarch64" ]; then | |
67 | - CRYSTAL_SLACK_FLAGS="--mcpu=aarch64" | |
68 | -else | |
69 | - CRYSTAL_SLACK_FLAGS="" | |
70 | -fi | |
71 | - | |
72 | -set -e # Exit on most errors | |
73 | - | |
74 | -rm -rf $PKG | |
75 | -mkdir -p $TMP $PKG $OUTPUT | |
76 | -cd $TMP | |
77 | -rm -rf $PRGNAM-$VERSION | |
78 | -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 | |
79 | -cd $PRGNAM-$VERSION | |
80 | -chown -R root:root . | |
81 | -find -L . \ | |
82 | - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
83 | - -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
84 | - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
85 | - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
86 | - | |
87 | -# Make a lib directory, then unpack dependencies into the correct place, and add | |
88 | -# a required symlink. This replicates what the Shards command normally does | |
89 | -# when building Crystal software. | |
90 | -mkdir -p lib | |
91 | -for depSrc in $BENBEN_DEP_SOURCES; do | |
92 | - cp $CWD/$depSrc lib | |
93 | - ( | |
94 | - cd lib | |
95 | - tar xvzf $depSrc || tar xvjf $depSrc | |
96 | - ) | |
97 | -done | |
98 | - | |
99 | -( | |
100 | - cd lib | |
101 | - mv remihjson--fdd7d725aa remihjson | |
102 | - mv zstd.cr-1.2.0 zstd | |
103 | - | |
104 | - # The ../ actually points to the lib directory we've created | |
105 | - ln -s ../ libremiliacr/lib | |
106 | - ln -s ../ remiaudio/lib | |
107 | - ln -s ../ remiconf/lib | |
108 | - ln -s ../ remihjson/lib | |
109 | - ln -s ../ remiportaudio/lib | |
110 | - ln -s ../ remixspf/lib | |
111 | - ln -s ../ yunosynth/lib | |
112 | - ln -s ../ zstd/lib | |
113 | -) | |
114 | - | |
115 | -### | |
116 | -### NOTE: Technically the zstd.cr bindings have a postinstall script specified | |
117 | -### in shard.yml that creates a local copy of the ZStandard library. However, | |
118 | -### this isn't needed for Slackware and is thus skipped. | |
119 | -### | |
120 | - | |
121 | -# Build the program | |
122 | -mkdir bin | |
123 | -echo "Building Benben" | |
124 | -CRYSTAL_OPTS="$CRYSTAL_SLACK_FLAGS" \ | |
125 | -crystal \ | |
126 | - build \ | |
127 | - -Dpreview_mt \ | |
128 | - -Dbenben_wd40 \ | |
129 | - -Dyunosynth_wd40 \ | |
130 | - --release \ | |
131 | - --no-debug \ | |
132 | - -p \ | |
133 | - -o bin/$PRGNAM \ | |
134 | - src/main.cr | |
135 | - | |
136 | -# Copy the program, man pages, etc. into the $PKG directory | |
137 | -mkdir -p $PKG/usr/bin | |
138 | -cp -v bin/$PRGNAM $PKG/usr/bin | |
139 | -mkdir -p $PKG/usr/man/man1 | |
140 | -cp -v man/$PRGNAM.1.gz $PKG/usr/man/man1 | |
141 | - | |
142 | -# Strip binaries and libraries - this can be done with 'make install-strip' | |
143 | -# in many source trees, and that's usually acceptable if so, but if not, | |
144 | -# use this: | |
145 | -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
146 | - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
147 | - | |
148 | -# Copy program documentation into the package | |
149 | -# The included documentation varies from one application to another, so be sure | |
150 | -# to adjust your script as needed | |
151 | -# Also, include the SlackBuild script in the documentation directory | |
152 | -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
153 | -cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION | |
154 | -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
155 | - | |
156 | -# Copy the slack-desc into ./install | |
157 | -mkdir -p $PKG/install | |
158 | -cat $CWD/slack-desc > $PKG/install/slack-desc | |
159 | - | |
160 | -# Make the package; be sure to leave it in $OUTPUT | |
161 | -# If package symlinks need to be created during install *before* | |
162 | -# your custom contents of doinst.sh runs, then add the -p switch to | |
163 | -# the makepkg command below -- see makepkg(8) for details | |
164 | -cd $PKG | |
165 | -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -1,26 +0,0 @@ | ||
1 | -PRGNAM="benben" | |
2 | -VERSION="0.1.0" | |
3 | -HOMEPAGE="https://chiselapp.com/user/MistressRemilia/repository/benben" | |
4 | -DOWNLOAD="https://chiselapp.com/user/MistressRemilia/repository/benben/uv/benben-0.1.0.tar.bz2 \ | |
5 | - https://chiselapp.com/user/MistressRemilia/repository/libremiliacr/uv/libremiliacr-0.10.0.tar.bz2 \ | |
6 | - https://chiselapp.com/user/MistressRemilia/repository/remiaudio/uv/remiaudio-0.2.1.tar.bz2 \ | |
7 | - https://chiselapp.com/user/MistressRemilia/repository/remiconf/uv/remiconf-0.1.2.tar.bz2 \ | |
8 | - https://chiselapp.com/user/MistressRemilia/repository/remihjson/tarball/fdd7d725aa/remihjson--fdd7d725aa.tar.gz \ | |
9 | - https://chiselapp.com/user/MistressRemilia/repository/remiportaudio/uv/remiportaudio-0.1.1.tar.bz2 \ | |
10 | - https://chiselapp.com/user/MistressRemilia/repository/remixspf/uv/remixspf-0.1.1.tar.bz2 \ | |
11 | - https://chiselapp.com/user/MistressRemilia/repository/yunosynth/uv/yunosynth-0.1.0.tar.bz2 \ | |
12 | - https://github.com/didactic-drunk/zstd.cr/archive/refs/tags/v1.2.0.tar.gz" | |
13 | -MD5SUM="fc4bef21e5236f391f415a805916d276 \ | |
14 | - 5ad8259c566ab983375a58573e297c12 \ | |
15 | - 0a38272e1f11cfee71bbf1f953931226 \ | |
16 | - 74557a7930e5dcd08a908722ee648041 \ | |
17 | - d6fac2a9cac7ccac2efa11585001802f \ | |
18 | - 4306241cb935965c85b471d1bad3f86d \ | |
19 | - a25b39e41552daf7d608bd0aaef53234 \ | |
20 | - 3c2b046d3e2c80b76107874179f201f8 | |
21 | - 7ea965124bad09458a32cf5b9174e1e3" | |
22 | -DOWNLOAD_x86_64="" | |
23 | -MD5SUM_x86_64="" | |
24 | -REQUIRES="crystal-lang" | |
25 | -MAINTAINER="Remilia Scarlet" | |
26 | -EMAIL="remilia@sdf.org" |
@@ -1,19 +0,0 @@ | ||
1 | -# HOW TO EDIT THIS FILE: | |
2 | -# The "handy ruler" below makes it easier to edit a package description. | |
3 | -# Line up the first '|' above the ':' following the base package name, and | |
4 | -# the '|' on the right side marks the last column you can put a character in. | |
5 | -# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | -# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | - | |
8 | - |-----handy-ruler------------------------------------------------------| | |
9 | -benben: Benben (a command line VGM player and converter) | |
10 | -benben: | |
11 | -benben: Benben is a command line program that can play VGM files, as well as | |
12 | -benben: bulk-convert them to WAV or Au format. | |
13 | -benben: | |
14 | -benben: While not all VGM files are supported, a great many already are, and | |
15 | -benben: more chips are being added as time goes on. | |
16 | -benben: | |
17 | -benben: Homepage: | |
18 | -benben: https://chiselapp.com/user/MistressRemilia/repository/benben/ | |
19 | -benben: | |
\ No newline at end of file |
@@ -1,12 +0,0 @@ | ||
1 | -Crystal is a programming language with the following goals: | |
2 | - | |
3 | -* Have a syntax similar to Ruby (but compatibility with it is not a goal). | |
4 | -* Statically type-checked but without having to specify the type of variables or | |
5 | - method arguments. | |
6 | -* Be able to call C code by writing bindings to it in Crystal. | |
7 | -* Have compile-time evaluation and generation of code, to avoid boilerplate | |
8 | - code. | |
9 | -* Compile to efficient native code. | |
10 | - | |
11 | -This SlackBuild repackages the pre-compiled release from the tarballs supplied | |
12 | -at https://crystal-lang.org/. |
@@ -1,134 +0,0 @@ | ||
1 | -#!/bin/bash | |
2 | - | |
3 | -# Slackware build script for Crystal | |
4 | -# | |
5 | -# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | -# All rights reserved. | |
7 | -# | |
8 | -# Redistribution and use of this script, with or without modification, is | |
9 | -# permitted provided that the following conditions are met: | |
10 | -# | |
11 | -# 1. Redistributions of this script must retain the above copyright | |
12 | -# notice, this list of conditions and the following disclaimer. | |
13 | -# | |
14 | -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | -cd $(dirname $0) ; CWD=$(pwd) | |
25 | - | |
26 | -PRGNAM=crystal-lang-bin | |
27 | -PRGNAM_SHORT=crystal | |
28 | -VERSION=${VERSION:-1.8.2} | |
29 | -SOURCE_BUILD=${SOURCE_BUILD:-1} | |
30 | -BUILD=${BUILD:-2} | |
31 | -TAG=${TAG:-_SBo} | |
32 | -PKGTYPE=${PKGTYPE:-tgz} | |
33 | - | |
34 | -# Automatically determine the architecture we're building on: | |
35 | -if [ -z "$ARCH" ]; then | |
36 | - case "$( uname -m )" in | |
37 | - i?86) ARCH=i586 ;; | |
38 | - arm*) ARCH=arm ;; | |
39 | - # Unless $ARCH is already set, use uname -m for all other archs: | |
40 | - *) ARCH=$( uname -m ) ;; | |
41 | - esac | |
42 | -fi | |
43 | - | |
44 | -if [ "$ARCH" = "i586" ]; then | |
45 | - echo "Not supported on this architecture" | |
46 | - exit 1 | |
47 | -elif [ "$ARCH" = "i686" ]; then | |
48 | - echo "Not supported on this architecture" | |
49 | - exit 1 | |
50 | -elif [ "$ARCH" = "x86_64" ]; then | |
51 | - # No CFLAGS needed | |
52 | - SOURCE_ARCH="x86_64" | |
53 | -elif [ "$ARCH" = "aarch64" ]; then | |
54 | - echo "Not supported on this architecture" | |
55 | - exit 1 | |
56 | -else | |
57 | - echo "Not supported on this architecture" | |
58 | - exit 1 | |
59 | -fi | |
60 | - | |
61 | -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
62 | -# the name of the created package would be, and then exit. This information | |
63 | -# could be useful to other scripts. | |
64 | -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
65 | - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
66 | - exit 0 | |
67 | -fi | |
68 | - | |
69 | -TMP=${TMP:-/tmp/SBo} | |
70 | -PKG=$TMP/package-$PRGNAM | |
71 | -OUTPUT=${OUTPUT:-/tmp} | |
72 | - | |
73 | -set -e # Exit on most errors | |
74 | - | |
75 | -rm -rf $PKG | |
76 | -mkdir -p $TMP $PKG $OUTPUT | |
77 | -cd $TMP | |
78 | -rm -rf $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD-$SOURCE_ARCH | |
79 | -tar xvf $CWD/$PRGNAM_SHORT-$VERSION-$SOURCE_BUILD-linux-$SOURCE_ARCH.tar.gz | |
80 | - | |
81 | -# These two symlinks will be recreated later on. They interfere with the find | |
82 | -# below. | |
83 | -rm -v $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD/lib/crystal/bin | |
84 | -rm -v $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD/lib/crystal/lib | |
85 | - | |
86 | -cd $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD | |
87 | -chown -R root:root . | |
88 | -find -L . \ | |
89 | - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
90 | - -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
91 | - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
92 | - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
93 | - | |
94 | -# Move the man files into the correct location. | |
95 | - | |
96 | -mkdir -p $PKG/usr/{bin,man,share,lib64} | |
97 | -mkdir -p $PKG/usr/man/man1 | |
98 | -cp -v bin/crystal $PKG/usr/bin | |
99 | -#cp -v bin/shards $PKG/usr/bin | |
100 | -cp -Rv lib/crystal $PKG/usr/lib64 | |
101 | -cp -Rv share/crystal $PKG/usr/share | |
102 | -cp -Rv share/bash-completion $PKG/usr/share/bash-completion | |
103 | -cp -Rv share/fish $PKG/usr/share/fish | |
104 | -cp -Rv share/zsh $PKG/usr/share/zsh | |
105 | -cp -Rv share/man/man1/crystal.1.gz $PKG/usr/man/man1 | |
106 | - | |
107 | -# Recreate some symlinks we removed earlier. | |
108 | -ln -s ../../bin $PKG/usr/lib64/crystal/bin | |
109 | -ln -s .. $PKG/usr/lib64/crystal/lib | |
110 | - | |
111 | -# Strip binaries and libraries - this can be done with 'make install-strip' | |
112 | -# in many source trees, and that's usually acceptable if so, but if not, | |
113 | -# use this: | |
114 | -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
115 | - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
116 | - | |
117 | -# Copy program documentation into the package | |
118 | -# The included documentation varies from one application to another, so be sure | |
119 | -# to adjust your script as needed | |
120 | -# Also, include the SlackBuild script in the documentation directory | |
121 | -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
122 | -cp -a share/licenses/crystal/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION | |
123 | -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
124 | - | |
125 | -# Copy the slack-desc into ./install | |
126 | -mkdir -p $PKG/install | |
127 | -cat $CWD/slack-desc > $PKG/install/slack-desc | |
128 | - | |
129 | -# Make the package; be sure to leave it in $OUTPUT | |
130 | -# If package symlinks need to be created during install *before* | |
131 | -# your custom contents of doinst.sh runs, then add the -p switch to | |
132 | -# the makepkg command below -- see makepkg(8) for details | |
133 | -cd $PKG | |
134 | -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -1,10 +0,0 @@ | ||
1 | -PRGNAM="crystal-lang-bin" | |
2 | -VERSION="1.8.2" | |
3 | -HOMEPAGE="https://crystal-lang.org" | |
4 | -DOWNLOAD="UNSUPPORTED" | |
5 | -MD5SUM="" | |
6 | -DOWNLOAD_x86_64="https://github.com/crystal-lang/crystal/releases/download/1.8.2/crystal-1.8.2-1-linux-x86_64.tar.gz" | |
7 | -MD5SUM_x86_64="91536523b37649f4e2210e0950ea5ac1" | |
8 | -REQUIRES="" | |
9 | -MAINTAINER="Remilia Scarlet" | |
10 | -EMAIL="remilia@sdf.org" |
@@ -1,19 +0,0 @@ | ||
1 | -# HOW TO EDIT THIS FILE: | |
2 | -# The "handy ruler" below makes it easier to edit a package description. | |
3 | -# Line up the first '|' above the ':' following the base package name, and | |
4 | -# the '|' on the right side marks the last column you can put a character in. | |
5 | -# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | -# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | - | |
8 | - |-----handy-ruler------------------------------------------------------| | |
9 | -crystal-lang-bin: crystal-lang (a compiled Ruby-like language with static typing) | |
10 | -crystal-lang-bin: | |
11 | -crystal-lang-bin: Crystal is a statically typed programming language with Ruby-like | |
12 | -crystal-lang-bin: syntax, and built on an LLVM backend. | |
13 | -crystal-lang-bin: | |
14 | -crystal-lang-bin: This is a repackaging of the official pre-compiled binaries. | |
15 | -crystal-lang-bin: | |
16 | -crystal-lang-bin: | |
17 | -crystal-lang-bin: | |
18 | -crystal-lang-bin: Homepage: https://crystal-lang.org/ | |
19 | -crystal-lang-bin: | |
\ No newline at end of file |
@@ -0,0 +1,12 @@ | ||
1 | +Crystal is a programming language with the following goals: | |
2 | + | |
3 | +* Have a syntax similar to Ruby (but compatibility with it is not a goal). | |
4 | +* Statically type-checked but without having to specify the type of variables or | |
5 | + method arguments. | |
6 | +* Be able to call C code by writing bindings to it in Crystal. | |
7 | +* Have compile-time evaluation and generation of code, to avoid boilerplate | |
8 | + code. | |
9 | +* Compile to efficient native code. | |
10 | + | |
11 | +This SlackBuild repackages the pre-compiled release from the tarballs supplied | |
12 | +at https://crystal-lang.org/. |
@@ -0,0 +1,134 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | +# Slackware build script for Crystal | |
4 | +# | |
5 | +# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | +# All rights reserved. | |
7 | +# | |
8 | +# Redistribution and use of this script, with or without modification, is | |
9 | +# permitted provided that the following conditions are met: | |
10 | +# | |
11 | +# 1. Redistributions of this script must retain the above copyright | |
12 | +# notice, this list of conditions and the following disclaimer. | |
13 | +# | |
14 | +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | +cd $(dirname $0) ; CWD=$(pwd) | |
25 | + | |
26 | +PRGNAM=crystal-lang-bin | |
27 | +PRGNAM_SHORT=crystal | |
28 | +VERSION=${VERSION:-1.8.2} | |
29 | +SOURCE_BUILD=${SOURCE_BUILD:-1} | |
30 | +BUILD=${BUILD:-2} | |
31 | +TAG=${TAG:-_SBo} | |
32 | +PKGTYPE=${PKGTYPE:-tgz} | |
33 | + | |
34 | +# Automatically determine the architecture we're building on: | |
35 | +if [ -z "$ARCH" ]; then | |
36 | + case "$( uname -m )" in | |
37 | + i?86) ARCH=i586 ;; | |
38 | + arm*) ARCH=arm ;; | |
39 | + # Unless $ARCH is already set, use uname -m for all other archs: | |
40 | + *) ARCH=$( uname -m ) ;; | |
41 | + esac | |
42 | +fi | |
43 | + | |
44 | +if [ "$ARCH" = "i586" ]; then | |
45 | + echo "Not supported on this architecture" | |
46 | + exit 1 | |
47 | +elif [ "$ARCH" = "i686" ]; then | |
48 | + echo "Not supported on this architecture" | |
49 | + exit 1 | |
50 | +elif [ "$ARCH" = "x86_64" ]; then | |
51 | + # No CFLAGS needed | |
52 | + SOURCE_ARCH="x86_64" | |
53 | +elif [ "$ARCH" = "aarch64" ]; then | |
54 | + echo "Not supported on this architecture" | |
55 | + exit 1 | |
56 | +else | |
57 | + echo "Not supported on this architecture" | |
58 | + exit 1 | |
59 | +fi | |
60 | + | |
61 | +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
62 | +# the name of the created package would be, and then exit. This information | |
63 | +# could be useful to other scripts. | |
64 | +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
65 | + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
66 | + exit 0 | |
67 | +fi | |
68 | + | |
69 | +TMP=${TMP:-/tmp/SBo} | |
70 | +PKG=$TMP/package-$PRGNAM | |
71 | +OUTPUT=${OUTPUT:-/tmp} | |
72 | + | |
73 | +set -e # Exit on most errors | |
74 | + | |
75 | +rm -rf $PKG | |
76 | +mkdir -p $TMP $PKG $OUTPUT | |
77 | +cd $TMP | |
78 | +rm -rf $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD-$SOURCE_ARCH | |
79 | +tar xvf $CWD/$PRGNAM_SHORT-$VERSION-$SOURCE_BUILD-linux-$SOURCE_ARCH.tar.gz | |
80 | + | |
81 | +# These two symlinks will be recreated later on. They interfere with the find | |
82 | +# below. | |
83 | +rm -v $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD/lib/crystal/bin | |
84 | +rm -v $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD/lib/crystal/lib | |
85 | + | |
86 | +cd $PRGNAM_SHORT-$VERSION-$SOURCE_BUILD | |
87 | +chown -R root:root . | |
88 | +find -L . \ | |
89 | + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
90 | + -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
91 | + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
92 | + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
93 | + | |
94 | +# Move the man files into the correct location. | |
95 | + | |
96 | +mkdir -p $PKG/usr/{bin,man,share,lib64} | |
97 | +mkdir -p $PKG/usr/man/man1 | |
98 | +cp -v bin/crystal $PKG/usr/bin | |
99 | +#cp -v bin/shards $PKG/usr/bin | |
100 | +cp -Rv lib/crystal $PKG/usr/lib64 | |
101 | +cp -Rv share/crystal $PKG/usr/share | |
102 | +cp -Rv share/bash-completion $PKG/usr/share/bash-completion | |
103 | +cp -Rv share/fish $PKG/usr/share/fish | |
104 | +cp -Rv share/zsh $PKG/usr/share/zsh | |
105 | +cp -Rv share/man/man1/crystal.1.gz $PKG/usr/man/man1 | |
106 | + | |
107 | +# Recreate some symlinks we removed earlier. | |
108 | +ln -s ../../bin $PKG/usr/lib64/crystal/bin | |
109 | +ln -s .. $PKG/usr/lib64/crystal/lib | |
110 | + | |
111 | +# Strip binaries and libraries - this can be done with 'make install-strip' | |
112 | +# in many source trees, and that's usually acceptable if so, but if not, | |
113 | +# use this: | |
114 | +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
115 | + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
116 | + | |
117 | +# Copy program documentation into the package | |
118 | +# The included documentation varies from one application to another, so be sure | |
119 | +# to adjust your script as needed | |
120 | +# Also, include the SlackBuild script in the documentation directory | |
121 | +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
122 | +cp -a share/licenses/crystal/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION | |
123 | +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
124 | + | |
125 | +# Copy the slack-desc into ./install | |
126 | +mkdir -p $PKG/install | |
127 | +cat $CWD/slack-desc > $PKG/install/slack-desc | |
128 | + | |
129 | +# Make the package; be sure to leave it in $OUTPUT | |
130 | +# If package symlinks need to be created during install *before* | |
131 | +# your custom contents of doinst.sh runs, then add the -p switch to | |
132 | +# the makepkg command below -- see makepkg(8) for details | |
133 | +cd $PKG | |
134 | +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -0,0 +1,10 @@ | ||
1 | +PRGNAM="crystal-lang-bin" | |
2 | +VERSION="1.8.2" | |
3 | +HOMEPAGE="https://crystal-lang.org" | |
4 | +DOWNLOAD="UNSUPPORTED" | |
5 | +MD5SUM="" | |
6 | +DOWNLOAD_x86_64="https://github.com/crystal-lang/crystal/releases/download/1.8.2/crystal-1.8.2-1-linux-x86_64.tar.gz" | |
7 | +MD5SUM_x86_64="91536523b37649f4e2210e0950ea5ac1" | |
8 | +REQUIRES="" | |
9 | +MAINTAINER="Remilia Scarlet" | |
10 | +EMAIL="remilia@sdf.org" |
@@ -0,0 +1,19 @@ | ||
1 | +# HOW TO EDIT THIS FILE: | |
2 | +# The "handy ruler" below makes it easier to edit a package description. | |
3 | +# Line up the first '|' above the ':' following the base package name, and | |
4 | +# the '|' on the right side marks the last column you can put a character in. | |
5 | +# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | +# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | + | |
8 | + |-----handy-ruler------------------------------------------------------| | |
9 | +crystal-lang-bin: crystal-lang (a compiled Ruby-like language with static typing) | |
10 | +crystal-lang-bin: | |
11 | +crystal-lang-bin: Crystal is a statically typed programming language with Ruby-like | |
12 | +crystal-lang-bin: syntax, and built on an LLVM backend. | |
13 | +crystal-lang-bin: | |
14 | +crystal-lang-bin: This is a repackaging of the official pre-compiled binaries. | |
15 | +crystal-lang-bin: | |
16 | +crystal-lang-bin: | |
17 | +crystal-lang-bin: | |
18 | +crystal-lang-bin: Homepage: https://crystal-lang.org/ | |
19 | +crystal-lang-bin: | |
\ No newline at end of file |
@@ -0,0 +1,3 @@ | ||
1 | +Shards is a build tool and dependency manager for the Crystal programming | |
2 | +language. It supports dependencies in Git, Mercurial, and Fossil repositories, | |
3 | +and can produce reproducible installs across computers and systems. | |
\ No newline at end of file |
@@ -0,0 +1,133 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | +# Slackware build script for Shards | |
4 | +# | |
5 | +# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | +# All rights reserved. | |
7 | +# | |
8 | +# Redistribution and use of this script, with or without modification, is | |
9 | +# permitted provided that the following conditions are met: | |
10 | +# | |
11 | +# 1. Redistributions of this script must retain the above copyright | |
12 | +# notice, this list of conditions and the following disclaimer. | |
13 | +# | |
14 | +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | +cd $(dirname $0) ; CWD=$(pwd) | |
25 | + | |
26 | +PRGNAM=shards | |
27 | +VERSION=${VERSION:-0.17.3} | |
28 | +MOLINILLO_VERSION=${MOLINILLO_VERSION:-0.2.0} | |
29 | +BUILD=${BUILD:-1} | |
30 | +TAG=${TAG:-_SBo} | |
31 | +PKGTYPE=${PKGTYPE:-tgz} | |
32 | + | |
33 | +# Automatically determine the architecture we're building on: | |
34 | +if [ -z "$ARCH" ]; then | |
35 | + case "$( uname -m )" in | |
36 | + i?86) ARCH=i586 ;; | |
37 | + arm*) ARCH=arm ;; | |
38 | + # Unless $ARCH is already set, use uname -m for all other archs: | |
39 | + *) ARCH=$( uname -m ) ;; | |
40 | + esac | |
41 | +fi | |
42 | + | |
43 | +if [ "$ARCH" = "i586" ]; then | |
44 | + SLKCFLAGS="-O2 -march=i586 -mtune=i686" | |
45 | + CRYSTAL_SLK_FLAGS="--mcpu=x86" | |
46 | + LIBDIRSUFFIX="" | |
47 | +elif [ "$ARCH" = "i686" ]; then | |
48 | + SLKCFLAGS="-O2 -march=i686 -mtune=i686" | |
49 | + CRYSTAL_SLK_FLAGS="--mcpu=x86" | |
50 | + LIBDIRSUFFIX="" | |
51 | +elif [ "$ARCH" = "x86_64" ]; then | |
52 | + SLKCFLAGS="-O2 -fPIC" | |
53 | + CRYSTAL_SLK_FLAGS="--mcpu=x86_64" | |
54 | + LIBDIRSUFFIX="64" | |
55 | +elif [ "$ARCH" = "aarch64" ]; then | |
56 | + SLKCFLAGS="-O2 -fPIC" | |
57 | + CRYSTAL_SLK_FLAGS="--mcpu=aarch64" | |
58 | + LIBDIRSUFFIX="64" | |
59 | +else | |
60 | + SLKCFLAGS="-O2" | |
61 | + CRYSTAL_SLK_FLAGS="" | |
62 | + LIBDIRSUFFIX="" | |
63 | +fi | |
64 | + | |
65 | +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
66 | +# the name of the created package would be, and then exit. This information | |
67 | +# could be useful to other scripts. | |
68 | +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
69 | + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
70 | + exit 0 | |
71 | +fi | |
72 | + | |
73 | +TMP=${TMP:-/tmp/SBo} | |
74 | +PKG=$TMP/package-$PRGNAM | |
75 | +OUTPUT=${OUTPUT:-/tmp} | |
76 | + | |
77 | +set -e # Exit on most errors | |
78 | + | |
79 | +rm -rf $PKG | |
80 | +mkdir -p $TMP $PKG $OUTPUT | |
81 | +cd $TMP | |
82 | +rm -rf $PRGNAM-$VERSION | |
83 | +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz | |
84 | +cd $PRGNAM-$VERSION | |
85 | + | |
86 | +# Copy over the needed molinillo dependency and unpack it into the lib directory | |
87 | +mkdir lib | |
88 | +cp -v $CWD/crystal-molinillo-$MOLINILLO_VERSION.tar.gz lib/ | |
89 | +( | |
90 | + cd lib | |
91 | + tar xvzf crystal-molinillo-$MOLINILLO_VERSION.tar.gz | |
92 | + mv crystal-molinillo-$MOLINILLO_VERSION molinillo | |
93 | +) | |
94 | + | |
95 | +chown -R root:root . | |
96 | +find -L . \ | |
97 | + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
98 | + -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
99 | + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
100 | + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
101 | + | |
102 | +# Build the compiler | |
103 | +CFLAGS="$SLKCFLAGS" \ | |
104 | +CRYSTAL_OPTS="$CRYSTAL_SLK_FLAGS" | |
105 | + make release=1 progress=1 | |
106 | +make install PREFIX=/usr DESTDIR=$PKG | |
107 | + | |
108 | +# Strip binaries and libraries - this can be done with 'make install-strip' | |
109 | +# in many source trees, and that's usually acceptable if so, but if not, | |
110 | +# use this: | |
111 | +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
112 | + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
113 | + | |
114 | +# Copy program documentation into the package | |
115 | +# The included documentation varies from one application to another, so be sure | |
116 | +# to adjust your script as needed | |
117 | +# Also, include the SlackBuild script in the documentation directory | |
118 | +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
119 | +cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION | |
120 | +cp -a CHANGELOG.md $PKG/usr/doc/$PRGNAM-$VERSION | |
121 | +cp -a SPEC.md $PKG/usr/doc/$PRGNAM-$VERSION | |
122 | +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
123 | + | |
124 | +# Copy the slack-desc into ./install | |
125 | +mkdir -p $PKG/install | |
126 | +cat $CWD/slack-desc > $PKG/install/slack-desc | |
127 | + | |
128 | +# Make the package; be sure to leave it in $OUTPUT | |
129 | +# If package symlinks need to be created during install *before* | |
130 | +# your custom contents of doinst.sh runs, then add the -p switch to | |
131 | +# the makepkg command below -- see makepkg(8) for details | |
132 | +cd $PKG | |
133 | +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -0,0 +1,14 @@ | ||
1 | +PRGNAM="shards" | |
2 | +VERSION="0.17.3" | |
3 | +HOMEPAGE="https://github.com/crystal-lang/shards" | |
4 | +DOWNLOAD="https://github.com/crystal-lang/shards/archive/refs/tags/v0.17.3.tar.gz \ | |
5 | + https://github.com/crystal-lang/crystal-molinillo/archive/refs/tags/v0.2.0.tar.gz" | |
6 | +MD5SUM="1fc2b19765e28a6bbf16291caf9cf62c | |
7 | + 11fd34fe3bbc91b851a74af6349b393f" | |
8 | +DOWNLOAD_x86_64="" | |
9 | +MD5SUM_x86_64="" | |
10 | +DOWNLOAD_aarch64="" | |
11 | +MD5SUM_aarch64="" | |
12 | +REQUIRES="crystal-lang" | |
13 | +MAINTAINER="Remilia Scarlet" | |
14 | +EMAIL="remilia@sdf.org" |
@@ -0,0 +1,19 @@ | ||
1 | +# HOW TO EDIT THIS FILE: | |
2 | +# The "handy ruler" below makes it easier to edit a package description. | |
3 | +# Line up the first '|' above the ':' following the base package name, and | |
4 | +# the '|' on the right side marks the last column you can put a character in. | |
5 | +# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | +# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | + | |
8 | + |-----handy-ruler------------------------------------------------------| | |
9 | +shards: shards (a build tool for the Crystal programming language) | |
10 | +shards: | |
11 | +shards: Shards is a build tool and dependency manager for the Crystal | |
12 | +shards: programming language. It supports dependencies in Git, Mercurial, | |
13 | +shards: and Fossil repositories. | |
14 | +shards: | |
15 | +shards: | |
16 | +shards: | |
17 | +shards: | |
18 | +shards: Homepage: https://github.com/crystal-lang/shards/ | |
19 | +shards: | |
\ No newline at end of file |
@@ -1,3 +0,0 @@ | ||
1 | -Shards is a build tool and dependency manager for the Crystal programming | |
2 | -language. It supports dependencies in Git, Mercurial, and Fossil repositories, | |
3 | -and can produce reproducible installs across computers and systems. | |
\ No newline at end of file |
@@ -1,133 +0,0 @@ | ||
1 | -#!/bin/bash | |
2 | - | |
3 | -# Slackware build script for Shards | |
4 | -# | |
5 | -# Copyright 2023 Remilia Scarlet, Colorado, United States | |
6 | -# All rights reserved. | |
7 | -# | |
8 | -# Redistribution and use of this script, with or without modification, is | |
9 | -# permitted provided that the following conditions are met: | |
10 | -# | |
11 | -# 1. Redistributions of this script must retain the above copyright | |
12 | -# notice, this list of conditions and the following disclaimer. | |
13 | -# | |
14 | -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED | |
15 | -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
16 | -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
17 | -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
18 | -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
20 | -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
21 | -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
22 | -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
23 | -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | -cd $(dirname $0) ; CWD=$(pwd) | |
25 | - | |
26 | -PRGNAM=shards | |
27 | -VERSION=${VERSION:-0.17.3} | |
28 | -MOLINILLO_VERSION=${MOLINILLO_VERSION:-0.2.0} | |
29 | -BUILD=${BUILD:-1} | |
30 | -TAG=${TAG:-_SBo} | |
31 | -PKGTYPE=${PKGTYPE:-tgz} | |
32 | - | |
33 | -# Automatically determine the architecture we're building on: | |
34 | -if [ -z "$ARCH" ]; then | |
35 | - case "$( uname -m )" in | |
36 | - i?86) ARCH=i586 ;; | |
37 | - arm*) ARCH=arm ;; | |
38 | - # Unless $ARCH is already set, use uname -m for all other archs: | |
39 | - *) ARCH=$( uname -m ) ;; | |
40 | - esac | |
41 | -fi | |
42 | - | |
43 | -if [ "$ARCH" = "i586" ]; then | |
44 | - SLKCFLAGS="-O2 -march=i586 -mtune=i686" | |
45 | - CRYSTAL_SLK_FLAGS="--mcpu=x86" | |
46 | - LIBDIRSUFFIX="" | |
47 | -elif [ "$ARCH" = "i686" ]; then | |
48 | - SLKCFLAGS="-O2 -march=i686 -mtune=i686" | |
49 | - CRYSTAL_SLK_FLAGS="--mcpu=x86" | |
50 | - LIBDIRSUFFIX="" | |
51 | -elif [ "$ARCH" = "x86_64" ]; then | |
52 | - SLKCFLAGS="-O2 -fPIC" | |
53 | - CRYSTAL_SLK_FLAGS="--mcpu=x86_64" | |
54 | - LIBDIRSUFFIX="64" | |
55 | -elif [ "$ARCH" = "aarch64" ]; then | |
56 | - SLKCFLAGS="-O2 -fPIC" | |
57 | - CRYSTAL_SLK_FLAGS="--mcpu=aarch64" | |
58 | - LIBDIRSUFFIX="64" | |
59 | -else | |
60 | - SLKCFLAGS="-O2" | |
61 | - CRYSTAL_SLK_FLAGS="" | |
62 | - LIBDIRSUFFIX="" | |
63 | -fi | |
64 | - | |
65 | -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what | |
66 | -# the name of the created package would be, and then exit. This information | |
67 | -# could be useful to other scripts. | |
68 | -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then | |
69 | - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" | |
70 | - exit 0 | |
71 | -fi | |
72 | - | |
73 | -TMP=${TMP:-/tmp/SBo} | |
74 | -PKG=$TMP/package-$PRGNAM | |
75 | -OUTPUT=${OUTPUT:-/tmp} | |
76 | - | |
77 | -set -e # Exit on most errors | |
78 | - | |
79 | -rm -rf $PKG | |
80 | -mkdir -p $TMP $PKG $OUTPUT | |
81 | -cd $TMP | |
82 | -rm -rf $PRGNAM-$VERSION | |
83 | -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz | |
84 | -cd $PRGNAM-$VERSION | |
85 | - | |
86 | -# Copy over the needed molinillo dependency and unpack it into the lib directory | |
87 | -mkdir lib | |
88 | -cp -v $CWD/crystal-molinillo-$MOLINILLO_VERSION.tar.gz lib/ | |
89 | -( | |
90 | - cd lib | |
91 | - tar xvzf crystal-molinillo-$MOLINILLO_VERSION.tar.gz | |
92 | - mv crystal-molinillo-$MOLINILLO_VERSION molinillo | |
93 | -) | |
94 | - | |
95 | -chown -R root:root . | |
96 | -find -L . \ | |
97 | - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ | |
98 | - -o -perm 511 \) -exec chmod 755 {} \; -o \ | |
99 | - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ | |
100 | - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; | |
101 | - | |
102 | -# Build the compiler | |
103 | -CFLAGS="$SLKCFLAGS" \ | |
104 | -CRYSTAL_OPTS="$CRYSTAL_SLK_FLAGS" | |
105 | - make release=1 progress=1 | |
106 | -make install PREFIX=/usr DESTDIR=$PKG | |
107 | - | |
108 | -# Strip binaries and libraries - this can be done with 'make install-strip' | |
109 | -# in many source trees, and that's usually acceptable if so, but if not, | |
110 | -# use this: | |
111 | -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | |
112 | - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | |
113 | - | |
114 | -# Copy program documentation into the package | |
115 | -# The included documentation varies from one application to another, so be sure | |
116 | -# to adjust your script as needed | |
117 | -# Also, include the SlackBuild script in the documentation directory | |
118 | -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION | |
119 | -cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION | |
120 | -cp -a CHANGELOG.md $PKG/usr/doc/$PRGNAM-$VERSION | |
121 | -cp -a SPEC.md $PKG/usr/doc/$PRGNAM-$VERSION | |
122 | -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild | |
123 | - | |
124 | -# Copy the slack-desc into ./install | |
125 | -mkdir -p $PKG/install | |
126 | -cat $CWD/slack-desc > $PKG/install/slack-desc | |
127 | - | |
128 | -# Make the package; be sure to leave it in $OUTPUT | |
129 | -# If package symlinks need to be created during install *before* | |
130 | -# your custom contents of doinst.sh runs, then add the -p switch to | |
131 | -# the makepkg command below -- see makepkg(8) for details | |
132 | -cd $PKG | |
133 | -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |
@@ -1,14 +0,0 @@ | ||
1 | -PRGNAM="shards" | |
2 | -VERSION="0.17.3" | |
3 | -HOMEPAGE="https://github.com/crystal-lang/shards" | |
4 | -DOWNLOAD="https://github.com/crystal-lang/shards/archive/refs/tags/v0.17.3.tar.gz \ | |
5 | - https://github.com/crystal-lang/crystal-molinillo/archive/refs/tags/v0.2.0.tar.gz" | |
6 | -MD5SUM="1fc2b19765e28a6bbf16291caf9cf62c | |
7 | - 11fd34fe3bbc91b851a74af6349b393f" | |
8 | -DOWNLOAD_x86_64="" | |
9 | -MD5SUM_x86_64="" | |
10 | -DOWNLOAD_aarch64="" | |
11 | -MD5SUM_aarch64="" | |
12 | -REQUIRES="crystal-lang" | |
13 | -MAINTAINER="Remilia Scarlet" | |
14 | -EMAIL="remilia@sdf.org" |
@@ -1,19 +0,0 @@ | ||
1 | -# HOW TO EDIT THIS FILE: | |
2 | -# The "handy ruler" below makes it easier to edit a package description. | |
3 | -# Line up the first '|' above the ':' following the base package name, and | |
4 | -# the '|' on the right side marks the last column you can put a character in. | |
5 | -# You must make exactly 11 lines for the formatting to be correct. It's also | |
6 | -# customary to leave one space after the ':' except on otherwise blank lines. | |
7 | - | |
8 | - |-----handy-ruler------------------------------------------------------| | |
9 | -shards: shards (a build tool for the Crystal programming language) | |
10 | -shards: | |
11 | -shards: Shards is a build tool and dependency manager for the Crystal | |
12 | -shards: programming language. It supports dependencies in Git, Mercurial, | |
13 | -shards: and Fossil repositories. | |
14 | -shards: | |
15 | -shards: | |
16 | -shards: | |
17 | -shards: | |
18 | -shards: Homepage: https://github.com/crystal-lang/shards/ | |
19 | -shards: | |
\ No newline at end of file |