blob: 441ffdfaf599367d0a8e7269da9895732afec85f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Bink
pkgname=qpress-git
_gitname="qpress"
pkgver=20230507.r41.f9252a0
pkgrel=3
pkgdesc="qpress is a portable high-speed file archiver using QuickLZ designed to utilize fast storage systems"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://github.com/PierreLvx/qpress"
license=('GPL')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
printf "%s.r%s.%s" "$(git -C $_gitname tag --sort=committerdate | tail -1 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')" "$(git -C $_gitname rev-list --count HEAD)" "$(git -C $_gitname rev-parse --short=7 HEAD)"
}
build() {
cd "${srcdir}/${_gitname}" || exit
# Fix for isatty()
sed -i 's|#include <sys/types.h>|#include <sys/types.h>\n #include <unistd.h> // for isatty()|' qpress.cpp
make
}
package(){
install -d "${pkgdir}/usr/bin/"
install "${srcdir}/${_gitname}/qpress" "${pkgdir}/usr/bin/"
}
|