From 4e1193e22558588ee526515e618a131bc82b190e Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Tue, 7 Jun 2022 08:18:19 +0200 Subject: [PATCH] Added PKGBUILD --- .SRCINFO | 14 ++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..5184016 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = yash-git + pkgdesc = Yash, yet another shell, is a POSIX-compliant command line shell written in C99. (Development version) + pkgver = 2.25.r1478.g2972e9a3 + pkgrel = 1 + url = https://yash.osdn.jp + arch = x86_64 + license = GPL2 + makedepends = git + depends = ncurses + options = lto + source = yash-git::git+https://github.com/magicant/yash#branch=trunk + md5sums = SKIP + +pkgname = yash-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6a9b95 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..97f7775 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Jef Roosens + +pkgbase='yash-git' +pkgname='yash-git' +pkgver=2.25.r1478.g2972e9a3 +pkgrel=1 +pkgdesc='Yash, yet another shell, is a POSIX-compliant command line shell written in C99. (Development version)' +arch=('x86_64') + +url='https://yash.osdn.jp' +license=('GPL2') + +depends=('ncurses') +makedepends=('git') + +source=("${pkgname}::git+https://github.com/magicant/yash#branch=trunk") +md5sums=('SKIP') +options=(lto) + +pkgver() { + git -C "${pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${pkgname}" + + CFLAGS="$CFLAGS -O3" ./configure --prefix='/usr' + make +} + +package() { + cd "${pkgname}" + + make install DESTDIR="${pkgdir}" +}