Compare commits

...

5 commits

Author SHA1 Message Date
954db90b45 upgpkg: ect 0.9.5-2: fix checksum 2024-09-23 20:06:44 +02:00
17a645288e Adopt SPDX identifiers for license fields 2024-07-21 07:32:40 +02:00
e073d7a6ed ect: Add sha512 checksums 2024-04-08 22:58:27 +02:00
a7f4f99432 ect: Fix submodule path 2024-01-08 20:54:10 +01:00
c8215dd898 upgpkg: ect 0.9.5-1
upstream release
2024-01-08 19:57:58 +01:00
2 changed files with 38 additions and 32 deletions

View file

@ -1,16 +1,19 @@
pkgbase = ect pkgbase = ect
pkgdesc = file compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files. pkgdesc = File compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files
pkgver = 0.9.4 pkgver = 0.9.5
pkgrel = 1 pkgrel = 2
url = https://github.com/fhanau/Efficient-Compression-Tool url = https://github.com/fhanau/efficient-compression-tool
arch = i686
arch = x86_64 arch = x86_64
license = Apache license = Apache-2.0
makedepends = nasm makedepends = nasm
makedepends = git makedepends = git
makedepends = cmake makedepends = cmake
depends = gcc-libs depends = gcc-libs
source = git+https://github.com/fhanau/Efficient-Compression-Tool.git#commit=503409a4de166ad1544adcb5d4e48fef308a2727 source = git+https://github.com/fhanau/efficient-compression-tool.git#tag=v0.9.5
md5sums = SKIP source = git+https://github.com/glennrp/libpng.git#commit=f135775ad4e5d4408d2e12ffcc71bb36e6b48551
source = git+https://github.com/fhanau/mozjpeg.git#commit=182457e3e26e1e078d5dbd09137cf04865be2e49
sha512sums = a1d0ad86aa8e6d720575daf7e833c3b787ac51595774b99b6fd4a8ece616150c2e2c174aa97a2bc0b89e16d6cd93ec0c0d657430c1a41bf08b121368af0a4abc
sha512sums = 13e286cf091b284d15888a959a8be5a90977bed92d861fd72d465199bd6112641b47d74a525d4100868d528a25921958e9ab579643b705befe48e5756ffa301f
sha512sums = 1bdd9efa8d9c49a16cf5f2135ed29dc120bc1b31eec7130802d22b3d09bf10fe337f734b39b38e422bbe6e1719aca6744d49e2b435c2cb94cbf401d89086947a
pkgname = ect pkgname = ect

View file

@ -1,38 +1,41 @@
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: William J. Bowman <aur@williamjbowman.com> # Contributor: William J. Bowman <aur@williamjbowman.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=ect pkgname=ect
_pkgname=Efficient-Compression-Tool _pkgname=efficient-compression-tool
pkgver=0.9.4 pkgver=0.9.5
pkgrel=1 pkgrel=2
pkgdesc='file compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files.' pkgdesc='File compressor, supports postcompression of PNG, JPEG, GZIP and ZIP files'
url='https://github.com/fhanau/Efficient-Compression-Tool' url="https://github.com/fhanau/$_pkgname"
arch=('i686' 'x86_64') arch=('x86_64')
license=('Apache') license=('Apache-2.0')
source=("git+$url.git#commit=503409a4de166ad1544adcb5d4e48fef308a2727")
md5sums=('SKIP')
depends=('gcc-libs') depends=('gcc-libs')
makedepends=('nasm' 'git' 'cmake') makedepends=('nasm' 'git' 'cmake')
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=('a1d0ad86aa8e6d720575daf7e833c3b787ac51595774b99b6fd4a8ece616150c2e2c174aa97a2bc0b89e16d6cd93ec0c0d657430c1a41bf08b121368af0a4abc'
'13e286cf091b284d15888a959a8be5a90977bed92d861fd72d465199bd6112641b47d74a525d4100868d528a25921958e9ab579643b705befe48e5756ffa301f'
'1bdd9efa8d9c49a16cf5f2135ed29dc120bc1b31eec7130802d22b3d09bf10fe337f734b39b38e422bbe6e1719aca6744d49e2b435c2cb94cbf401d89086947a')
prepare() { prepare() {
cd ${_pkgname} cd "$_pkgname"
git submodule init git submodule init
git submodule update --init --recursive --recommend-shallow git config submodule.src/libpng.url "$srcdir"/libpng
git config submodule.src/mozjpeg.url "$srcdir"/mozjpeg
git -c protocol.file.allow=always submodule update
} }
build() { build() {
cd ${_pkgname} cmake -B build -S "$_pkgname"/src \
[ -d build ] || mkdir build -DCMAKE_INSTALL_PREFIX=/usr \
cd build -DCMAKE_BUILD_TYPE=Release
cmake -DECT_FOLDER_SUPPORT=off ../src cmake --build build
make
} }
package() { package() {
cd ${_pkgname}/build DESTDIR="$pkgdir" cmake --install build
install -Dm755 ect "$pkgdir"/usr/bin/ect # Some things expect this to be an all-caps name
cd "${pkgdir}"/usr/bin ln -s ect "$pkgdir"/usr/bin/ECT
# Some things expect this to be an all-caps name
ln -s ect ECT
} }