commit a79be0ea10037c1ea72508c42fa87283ab46bb30 Author: William J. Bowman Date: Sat Jun 30 00:17:22 2018 -0400 Updated to 0.8.2-1 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..507d59d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = ect + pkgdesc = Efficient Compression Tool (or ECT) is a ++ file optimizer. It supports PNG, JPEG, GZIP and ZIP files. + pkgver = 0.8.2 + pkgrel = 1 + url = https://github.com/fhanau/Efficient-Compression-Tool + arch = i686 + arch = x86_64 + license = Apache2 + makedepends = nasm + source = ect::git+https://github.com/fhanau/Efficient-Compression-Tool.git#tag=v0.8.2 + sha256sums = SKIP + +pkgname = ect + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3d2f8e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +#Maintainer: William J. Bowman + +pkgname=ect +pkgver=0.8.2 +pkgrel=1 +pkgdesc='Efficient Compression Tool (or ECT) is a ++ file optimizer. It supports PNG, JPEG, GZIP and ZIP files.' +url='https://github.com/fhanau/Efficient-Compression-Tool' +arch=('i686' 'x86_64') +license=('Apache2') +source=("ect::git+https://github.com/fhanau/Efficient-Compression-Tool.git#tag=v${pkgver}") +sha256sums=('SKIP') +makedepends=('nasm') + +prepare(){ + cd "${srcdir}/${pkgname}/src" + git submodule update --init --recursive --recommend-shallow + cd mozjpeg + autoreconf -i +} + +build() { + cd "${srcdir}/${pkgname}/src" + make +} + +package() { + cd "${srcdir}/${pkgname}/src" + + PREFIX=/usr/ DESTDIR="${pkgdir}" make install + cd "${pkgdir}"/usr/bin + + # Some things expect this to be an all-caps name + ln -s ect ECT +}