Added mdtohtml

This commit is contained in:
Ella-0 2021-04-06 08:15:33 +01:00
parent 91ed203f60
commit abaaf147ab
4 changed files with 51 additions and 0 deletions

31
pkgs/mdtohtml/build.sh Normal file
View file

@ -0,0 +1,31 @@
pkgname=mdtohtml
pkgver=master
fetch() {
curl -L "https://github.com/gomarkdown/mdtohtml/archive/refs/heads/master.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
cp ../go.mod .
cp ../go.sum .
cp ../exts.patch .
cd $pkgname-$pkgver
patch -p1 < ../exts.patch
}
build() {
cd $pkgname-$pkgver
mkdir build
cp ../go.mod .
cp ../go.sum .
go build -o build
}
package() {
cd $pkgname-$pkgver
install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}