2020-03-30 17:22:25 +02:00
|
|
|
# Contributor: William J. Bowman <aur@williamjbowman.com>
|
|
|
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
|
2018-06-30 06:17:22 +02:00
|
|
|
|
|
|
|
pkgname=ect
|
2020-03-30 17:22:25 +02:00
|
|
|
_pkgname=Efficient-Compression-Tool
|
2022-06-01 19:39:40 +02:00
|
|
|
pkgver=0.9.1
|
2022-06-06 14:17:51 +02:00
|
|
|
pkgrel=3
|
2020-03-30 17:22:25 +02:00
|
|
|
pkgdesc='file compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files.'
|
2018-06-30 06:17:22 +02:00
|
|
|
url='https://github.com/fhanau/Efficient-Compression-Tool'
|
|
|
|
arch=('i686' 'x86_64')
|
2020-03-30 17:22:25 +02:00
|
|
|
license=('Apache')
|
2022-06-06 14:17:51 +02:00
|
|
|
source=("git+https://github.com/fhanau/Efficient-Compression-Tool.git#commit=f920e54bb1b584d3c3d75d3d90d8cfedd04d2fbe")
|
|
|
|
md5sums=('SKIP')
|
2020-03-30 17:22:25 +02:00
|
|
|
depends=('gcc-libs')
|
2022-06-06 14:17:51 +02:00
|
|
|
makedepends=('nasm' 'git' 'cmake')
|
2018-06-30 06:17:22 +02:00
|
|
|
|
2020-03-30 17:22:25 +02:00
|
|
|
prepare() {
|
|
|
|
cd ${_pkgname}
|
|
|
|
git submodule init
|
2018-06-30 06:17:22 +02:00
|
|
|
git submodule update --init --recursive --recommend-shallow
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-03-30 17:22:25 +02:00
|
|
|
cd ${_pkgname}
|
|
|
|
[ -d build ] || mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DECT_FOLDER_SUPPORT=off ../src
|
2018-06-30 06:17:22 +02:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-06-06 14:17:51 +02:00
|
|
|
cd ${_pkgname}/build
|
|
|
|
install -Dm755 ect "$pkgdir"/usr/bin/ect
|
2020-03-30 17:22:25 +02:00
|
|
|
cd "${pkgdir}"/usr/bin
|
2018-06-30 06:17:22 +02:00
|
|
|
|
|
|
|
# Some things expect this to be an all-caps name
|
2020-03-30 17:22:25 +02:00
|
|
|
ln -s ect ECT
|
2018-06-30 06:17:22 +02:00
|
|
|
}
|