arch-packages/PKGBUILD

40 lines
971 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
pkgver=0.8.3
pkgrel=1
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')
source=("git+https://github.com/fhanau/Efficient-Compression-Tool.git#commit=f0b38f7f8b750099f14d4976beff6a107d6119ac")
md5sums=('SKIP')
depends=('gcc-libs')
makedepends=('nasm' 'git')
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
}