added mandoc
This commit is contained in:
parent
fbc445b4a9
commit
5ea842eb26
4 changed files with 64 additions and 0 deletions
35
pkgs/mandoc/build.sh
Normal file
35
pkgs/mandoc/build.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
pkgname=mandoc
|
||||
pkgver=1.14.5
|
||||
|
||||
fetch() {
|
||||
curl "https://mandoc.bsd.lv/snapshots/mandoc-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
cp ../configure.local .
|
||||
cp ../term-size.patch .
|
||||
cp ../man.sh .
|
||||
cd $pkgname-$pkgver
|
||||
cp ../configure.local .
|
||||
patch -p1 < ../term-size.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--build=x86_64-unknown-linux-musl \
|
||||
--host=x86_64-unknown-linux-musl
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 ./man.sh $pkgdir/etc/profile.d/man.sh
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
# cat COPYING
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue