upgpkg: ect 0.9.5-1
upstream release
This commit is contained in:
parent
5a575bd9b7
commit
ecd597da60
2 changed files with 34 additions and 28 deletions
15
ect/.SRCINFO
15
ect/.SRCINFO
|
@ -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 = 1
|
||||||
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
|
||||||
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 = SKIP
|
||||||
|
sha512sums = SKIP
|
||||||
|
sha512sums = SKIP
|
||||||
|
|
||||||
pkgname = ect
|
pkgname = ect
|
||||||
|
|
47
ect/PKGBUILD
47
ect/PKGBUILD
|
@ -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=1
|
||||||
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')
|
||||||
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=('SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd ${_pkgname}
|
cd "$_pkgname"
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --init --recursive --recommend-shallow
|
git config submodule.lib/libpng.url "$srcdir"/src/libpng
|
||||||
|
git config submodule.lib/mozjpeg.url "$srcdir"/src/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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue