summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 28 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b13cd37b71e..ab03be7d553 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,11 +4,11 @@
pkgname=flif
_srcname=FLIF
pkgver=0.3
-pkgrel=4
+pkgrel=5
pkgdesc='Free Lossless Image Format'
-arch=('i686' 'x86_64')
+arch=('x86_64')
url='https://github.com/FLIF-hub/FLIF/'
-license=('LGPL3' 'APACHE')
+license=('LGPL3' 'Apache')
depends=('gcc-libs' 'libpng' 'sdl2')
optdepends=(
# official repositories:
@@ -17,9 +17,11 @@ optdepends=(
'apng-utils: for apng2flif tool'
)
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/FLIF-hub/FLIF/archive/v${pkgver}.tar.gz"
- 'flif-use-build-flags.patch')
+ 'flif-use-build-flags.patch'
+ 'flif-remove-apt-get-references-from-tools.patch')
sha256sums=('aa02a62974d78f8109cff21ecb6d805f1d23b05b2db7189cfdf1f0d97ff89498'
- 'd8cdb93f4f1e63487d65d23c1c96bf79acff1277532cbcfd88ca05932655d871')
+ 'd8cdb93f4f1e63487d65d23c1c96bf79acff1277532cbcfd88ca05932655d871'
+ 'c516d92d4724e319af79bb1ac5d3dde81dac359fd4a02af1ee71239a49d58710')
prepare() {
cd "${_srcname}-${pkgver}"
@@ -28,17 +30,35 @@ prepare() {
patch -Np1 -i "${srcdir}/flif-use-build-flags.patch"
# remove apt-get references from installed tools
- cd tools
- sed -i '/apt-get/d' gif2flif apng2flif
+ patch -Np1 -i "${srcdir}/flif-remove-apt-get-references-from-tools.patch"
}
build() {
cd "${_srcname}-${pkgver}/src"
- make all decoder viewflif
+ make all decoder viewflif test-interface
}
+check() {
+ cd "${_srcname}-${pkgver}/testFiles"
+
+ local _image
+ local _images
+ _images=($(find -type f -name '*'))
+
+ cd "${srcdir}/${_srcname}-${pkgver}/src"
+
+ export LD_LIBRARY_PATH="${srcdir}/${_srcname}-${pkgver}/src"
+
+ for _image in "${_images[@]}"
+ do
+ _image="${_image#./}"
+ printf '%s\n' " -> Testing with image '${_image}'..."
+ ./test-interface "../${_image}"
+ done
+}
+
package() {
cd "${_srcname}-${pkgver}/src"