From d4741819d35cee81ef57c2b7840bf8725f4da5e3 Mon Sep 17 00:00:00 2001 From: sulincix Date: Sat, 10 Dec 2022 18:25:10 +0000 Subject: [PATCH] flex bison p7zip --- app/arch/p7zip/ympbuild | 31 +++++++++++++++++++++++++++++++ sys/devel/bison/ympbuild | 32 ++++++++++++++++++++++++++++++++ sys/devel/flex/ympbuild | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 app/arch/p7zip/ympbuild create mode 100644 sys/devel/bison/ympbuild create mode 100644 sys/devel/flex/ympbuild diff --git a/app/arch/p7zip/ympbuild b/app/arch/p7zip/ympbuild new file mode 100644 index 00000000..850f64ae --- /dev/null +++ b/app/arch/p7zip/ympbuild @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +name='p7zip' +release='1' +version='17.04' +url='https://github.com/jinfeihan57/p7zip' +description='Command-line file archiver with high compression ratio' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('GPLv3') +source=("https://github.com/flyfishzy/p7zip/archive/refs/tags/v$version.zip") +depends=(gcc) +makedepends=() +md5sums=('5f362f28d7f8b75d89f86065b3dba520') +uses=() +arch=('x86_64') +group=(app.arch) + +cd $name-$version + +build(){ + make 7z 7zr 7za -j`nproc` +} + +package(){ + make install \ + DEST_DIR="${DESTDIR}" \ + DEST_HOME=/usr + mv ${DESTDIR}/usr/lib{,64} + sed -i "s/lib/lib64/g" ${DESTDIR}/usr/bin/* +} + diff --git a/sys/devel/bison/ympbuild b/sys/devel/bison/ympbuild new file mode 100644 index 00000000..6ee4134d --- /dev/null +++ b/sys/devel/bison/ympbuild @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +name='bison' +release='1' +version='3.8.2' +url='https://ftp.gnu.org/gnu/bison/' +description='The GNU general-purpose parser generator' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('GPLv3') +source=("https://ftp.gnu.org/gnu/bison/bison-$version.tar.xz") +depends=() +makedepends=() +md5sums=('c28f119f405a2304ff0a7ccdcc629713') +uses=() +group=(sys.devel) +arch=('x86_64') + +cd $name-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ +} + +build(){ + make -j`nproc` +} + +package(){ + make install -j`nproc` +} + diff --git a/sys/devel/flex/ympbuild b/sys/devel/flex/ympbuild new file mode 100644 index 00000000..7fd60de7 --- /dev/null +++ b/sys/devel/flex/ympbuild @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +name='flex' +release='1' +version='2.6.4' +url='https://github.com/westes/flex' +description='A tool for generating text-scanning programs' +email='parduscix@yandex.ru' +maintainer='sulincix' +license=('GPLv3') +source=("https://github.com/westes/flex/archive/refs/tags/v$version.tar.gz") +depends=() +makedepends=() +md5sums=('96828d1e36d18545b71a027caa6478dd') +uses=() +group=(sys.devel) +arch=('x86_64') + +cd $name-$version + +setup(){ + autoreconf -fvi + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ +} + +build(){ + make -j`nproc` +} + +package(){ + make install -j`nproc` +} +