2024-01-08 19:57:58 +01:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
|
2020-03-30 17:22:25 +02:00
|
|
|
# Contributor: William J. Bowman <aur@williamjbowman.com>
|
2018-06-30 06:17:22 +02:00
|
|
|
|
|
|
|
pkgname=ect
|
2024-01-08 19:57:58 +01:00
|
|
|
_pkgname=efficient-compression-tool
|
|
|
|
pkgver=0.9.5
|
2022-08-15 12:28:45 +02:00
|
|
|
pkgrel=1
|
2024-01-08 19:57:58 +01:00
|
|
|
pkgdesc='File compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files'
|
|
|
|
url="https://github.com/fhanau/$_pkgname"
|
|
|
|
arch=('x86_64')
|
2020-03-30 17:22:25 +02:00
|
|
|
license=('Apache')
|
|
|
|
depends=('gcc-libs')
|
2022-06-06 14:17:51 +02:00
|
|
|
makedepends=('nasm' 'git' 'cmake')
|
2024-01-08 19:57:58 +01:00
|
|
|
source=("git+$url.git#tag=v$pkgver"
|
|
|
|
'git+https://github.com/glennrp/libpng.git#commit=f135775ad4e5d4408d2e12ffcc71bb36e6b48551'
|
|
|
|
'git+https://github.com/fhanau/mozjpeg.git#commit=182457e3e26e1e078d5dbd09137cf04865be2e49')
|
|
|
|
sha512sums=('SKIP'
|
|
|
|
'SKIP'
|
|
|
|
'SKIP')
|
2018-06-30 06:17:22 +02:00
|
|
|
|
2020-03-30 17:22:25 +02:00
|
|
|
prepare() {
|
2024-01-08 19:57:58 +01:00
|
|
|
cd "$_pkgname"
|
|
|
|
git submodule init
|
2024-01-08 20:54:10 +01:00
|
|
|
git config submodule.src/libpng.url "$srcdir"/libpng
|
|
|
|
git config submodule.src/mozjpeg.url "$srcdir"/mozjpeg
|
2024-01-08 19:57:58 +01:00
|
|
|
git -c protocol.file.allow=always submodule update
|
2018-06-30 06:17:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-01-08 19:57:58 +01:00
|
|
|
cmake -B build -S "$_pkgname"/src \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build build
|
2018-06-30 06:17:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-01-08 19:57:58 +01:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
# Some things expect this to be an all-caps name
|
|
|
|
ln -s ect "$pkgdir"/usr/bin/ECT
|
2018-06-30 06:17:22 +02:00
|
|
|
}
|