arch-packages/PKGBUILD

40 lines
979 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
2022-05-28 12:54:12 +02:00
pkgver=0.9.0
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')
2022-05-28 12:54:12 +02:00
source=("git+https://github.com/fhanau/Efficient-Compression-Tool.git#commit=74cd0d283ce52b8c3d049894eaa2e38b2d098473")
2020-03-30 17:22:25 +02:00
md5sums=('SKIP')
depends=('gcc-libs')
2020-04-02 10:33:19 +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() {
2020-03-30 17:22:25 +02:00
cd ${_pkgname}/src
2018-06-30 06:17:22 +02:00
PREFIX=/usr/ DESTDIR="${pkgdir}" make install
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
}