added markdown tools

This commit is contained in:
Ella-0 2021-04-05 18:41:17 +01:00
parent 5e2dcbb4e5
commit 91ed203f60
5 changed files with 121 additions and 0 deletions

30
pkgs/md4c/build.sh Normal file
View file

@ -0,0 +1,30 @@
pkgname=md4c
pkgver=master
fetch() {
curl -L "https://github.com/mity/md4c/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
}
build() {
cd $pkgname-$pkgver
cd build
cmake -G Ninja ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

27
pkgs/rawk/build.sh Normal file
View file

@ -0,0 +1,27 @@
pkgname=rawk
pkgver=master
fetch() {
curl -L "https://github.com/kisom/rawk/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../cp-u.patch .
cd $pkgname-$pkgver
patch -p1 < ../cp-u.patch
}
build() {
cd $pkgname-$pkgver
PREFIX=/usr ./config.sh
make
}
package() {
cd $pkgname-$pkgver
make install PREFIX=$pkgdir/usr/
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

20
pkgs/rawk/cp-u.patch Normal file
View file

@ -0,0 +1,20 @@
--- a/rawk
+++ b/rawk
@@ -98,7 +98,7 @@
if [ -n "$stylesheet" ]; then
mkdir -p "$target"/styles
- cp -u "$stylesheet" "$target"/styles/style.css
+ cp "$stylesheet" "$target"/styles/style.css
fi
cd "$src_dir"
@@ -119,7 +119,7 @@
if [ -d "$i" ]; then
mkdir -p "$o"
else
- cp -u "$i" "$o"
+ cp "$i" "$o"
fi
;;
esac

24
pkgs/smu/build.sh Normal file
View file

@ -0,0 +1,24 @@
pkgname=smu
pkgver=master
fetch() {
curl -L "https://github.com/Gottox/smu/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../config.mk .
}
build() {
cd $pkgname-$pkgver
cp ../config.mk .
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}

20
pkgs/smu/config.mk Normal file
View file

@ -0,0 +1,20 @@
# smu version
VERSION = 1.5
# paths
PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man
# includes and libs
INCS = -I. -I/usr/include
LIBS = -L/usr/lib
# flags
CFLAGS = -g -O0 -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#CFLAGS = -fprofile-arcs -ftest-coverage -pg -g -O0 -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#CFLAGS = -Os -Wall -Werror -ansi ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = -fprofile-arcs -ftest-coverage -pg ${LIBS}
LDFLAGS = ${LIBS}
# compiler
CC = cc