arch-packages/PKGBUILD

39 lines
928 B
Bash
Raw Normal View History

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
2023-01-23 19:57:28 +01:00
pkgver=0.9.4
2022-08-15 12:28:45 +02:00
pkgrel=1
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')
2023-01-23 19:57:28 +01:00
source=("git+$url.git#commit=503409a4de166ad1544adcb5d4e48fef308a2727")
md5sums=('SKIP')
2020-03-30 17:22:25 +02:00
depends=('gcc-libs')
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() {
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
}