arch-packages/PKGBUILD

40 lines
994 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-06-01 19:39:40 +02:00
pkgver=0.9.1
2022-05-28 12:54:12 +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')
2022-06-01 19:39:40 +02:00
source=("${_pkgname}-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b4af4f1da55ca5ebc1f02029bb7fc7de9c6a45593d1866f35cdca839e01c1a1f')
2020-03-30 17:22:25 +02:00
depends=('gcc-libs')
2022-06-01 19:39:40 +02:00
makedepends=('nasm' '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
}