help2man ve docbook-xsl gönderildi
This commit is contained in:
1 parent
0485c86ec4
commit
17e1260454
4 files changed
+172
No files matched your search
@@ -0,0 +1,53 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='docbook-xml'
|
||||||
|
release='1'
|
||||||
|
version='4.5'
|
||||||
|
url='https://example.org'
|
||||||
|
description='Package description missing'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('MIT')
|
||||||
|
source=("https://docbook.org/xml/$version/docbook-xml-$version.zip" "LICENSE")
|
||||||
|
depends=(libxml2)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('03083e288e87a7e829e437358da7ef9e' 'SKIP')
|
||||||
|
group=(app.text)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
#cd $name-$version
|
||||||
|
|
||||||
|
|
||||||
|
build(){
|
||||||
|
#make $jobs
|
||||||
|
local ver xml
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
#make install $jobs
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p "$DESTDIR/etc/xml"
|
||||||
|
xmlcatalog --noout --create "$DESTDIR/etc/xml/docbook-xml"
|
||||||
|
|
||||||
|
mkdir docbook-xml-$version
|
||||||
|
bsdtar -C docbook-xml-$version -xf docbook-xml-$version.zip
|
||||||
|
|
||||||
|
pushd docbook-xml-$version
|
||||||
|
mkdir -p "$DESTDIR/usr/share/xml/docbook/xml-dtd-$version"
|
||||||
|
cp -dr docbook.cat *.dtd ent/ *.mod \
|
||||||
|
"$DESTDIR/usr/share/xml/docbook/xml-dtd-$version"
|
||||||
|
popd
|
||||||
|
|
||||||
|
xmlcatalog --noout --add "public" \
|
||||||
|
"-//OASIS//DTD DocBook XML V$verdion//EN" \
|
||||||
|
"http://www.oasis-open.org/docbook/xml/$version/docbookx.dtd" \
|
||||||
|
"$DESTDIR/etc/xml/docbook-xml"
|
||||||
|
|
||||||
|
install -Dt "$DESTDIR/usr/share/licenses/$name" -m644 LICENSE
|
||||||
|
|
||||||
|
# Fix permissions
|
||||||
|
find "$DESTDIR" -type f -exec chmod -c a-x {} +
|
||||||
|
chmod -Rc u=rwX,go=rX "$DESTDIR"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='docbook-xsl'
|
||||||
|
release='1'
|
||||||
|
version='1.79.2'
|
||||||
|
url='https://docbook.org/'
|
||||||
|
description='XML stylesheets for Docbook-xml transformations'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('custom')
|
||||||
|
source=(https://github.com/docbook/xslt10-stylesheets/releases/download/release/$version/docbook-xsl{,-nons}-$version.zip '765567_non-recursive_string_subst.patch')
|
||||||
|
depends=(docbook-xml libxml2 libxslt)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('39c12481817d5a57501d27621eeba9a8' 'df397633036d576f04431f1b00047910' 'd41d8cd98f00b204e9800998ecf8427e')
|
||||||
|
group=(app.text)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
install=$name.install
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
|
||||||
|
build(){
|
||||||
|
#make $jobs
|
||||||
|
patch -Np2 -i ../765567_non-recursive_string_subst.patch
|
||||||
|
cd ../$name-nons-$version
|
||||||
|
patch -Np2 -i ../765567_non-recursive_string_subst.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
#make install $jobs
|
||||||
|
#depends=(libxml2 libxslt docbook-xml)
|
||||||
|
|
||||||
|
local pkgroot ns dir
|
||||||
|
for ns in -nons ''; do
|
||||||
|
pkgroot="$DESTDIR/usr/share/xml/docbook/xsl-stylesheets-$verion$ns"
|
||||||
|
dir="../"$name$ns-$version
|
||||||
|
|
||||||
|
install -Dt "$pkgroot" -m644 $dir/VERSION{,.xsl}
|
||||||
|
|
||||||
|
(
|
||||||
|
shopt -s nullglob # ignore missing files
|
||||||
|
for fn in assembly common eclipse epub epub3 fo highlighting html \
|
||||||
|
htmlhelp javahelp lib manpages params profiling roundtrip template \
|
||||||
|
website xhtml xhtml-1_1 xhtml5
|
||||||
|
do
|
||||||
|
install -Dt "$pkgroot/$fn" -m644 $dir/$fn/*.{xml,xsl,dtd,ent}
|
||||||
|
done
|
||||||
|
)
|
||||||
|
done
|
||||||
|
|
||||||
|
install -d "$DESTDIR/etc/xml"
|
||||||
|
install -Dt "$DESTDIR/usr/share/licenses/$pkgname" -m644 $dir/COPYING
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='perl-locale-gettext'
|
||||||
|
release='1'
|
||||||
|
version='1.07'
|
||||||
|
url='https://search.cpan.org/dist/Locale-gettext/'
|
||||||
|
description='Permits access from Perl to the gettext() family of functions'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('GPL' 'PerlArtistic')
|
||||||
|
source=("https://cpan.metacpan.org/authors/id/P/PV/PVANDRY/Locale-gettext-$version.tar.gz")
|
||||||
|
depends=(gettext perl)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('bc652758af65c24500f1d06a77415019')
|
||||||
|
group=(dev.perl)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd "Locale-gettext"-$version
|
||||||
|
|
||||||
|
build(){
|
||||||
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make $jobs
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make install $jobs DESTDIR="$DESTDIR"
|
||||||
|
find "${DESTDIR}" -name perllocal.pod -delete
|
||||||
|
find "${DESTDIR}" -name .packlist -delete
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='help2man'
|
||||||
|
release='1'
|
||||||
|
version='1.49.3'
|
||||||
|
url='https://www.gnu.org/software/help2man/'
|
||||||
|
description='Conversion tool to create man files'
|
||||||
|
email='akarsu@protonmail.com'
|
||||||
|
maintainer='akarsu'
|
||||||
|
license=('GPL')
|
||||||
|
source=("https://ftp.gnu.org/gnu/help2man/help2man-$version.tar.xz")
|
||||||
|
depends=(perl-locale-gettext)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('2a0ffaa1822df5b6971f486a4fe1a4d1')
|
||||||
|
group=(sys.apps)
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--libdir=/usr/lib64/ \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--infodir=/usr/share/info \
|
||||||
|
--libdir=/usr/lib
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make $jobs
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make install $jobs DESTDIR="${DESTDIR}"
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user