summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMateusz Gozdek2020-05-30 22:37:22 +0200
committerMateusz Gozdek2020-05-30 22:37:22 +0200
commit87aa2a0fb245db2c8da6dbb19ced34689a16309c (patch)
treed92d91db241639f0570d5e313281541fd4e128d3 /PKGBUILD
parentbfcd34bbb1e7d8e175a79d7fd01b342e2321b791 (diff)
downloadaur-87aa2a0fb245db2c8da6dbb19ced34689a16309c.tar.gz
Use make flags instead of patching the Makefile
To use shared version of libjpeg-turbo. Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 3 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2499ebff0bc..1caa04d136d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,26 +16,21 @@ makedepends=('gtk2')
optdepends=('gtk2: use GUI version in addition to CLI interface' )
source=("${pkgname}.desktop"
- "0001-Use-shared-version-of-libjpeg-turbo.patch"
"${pkgname}-${pkgver}.zip::https://github.com/aramg/${pkgname}/archive/v${pkgver}.zip"
"${pkgname}.conf"
)
sha512sums=('72d21aa2d7eecc9bb070aaf7059a671246feb22f9c39b934a5463a4839f9347050de00754e5031dbc44f78eb2731f58f0cd2fcf781bc241f6fbd1abb4308b7ee'
- '4ae0849efb8f9183cae75d0ccc1459afe186de6479d47d4634c78c43ab9d92e46bf33d2f68e93134c4d67569cd5421d408013371ad2d5c33d60c0af5de284deb'
'f02a76eb5323b62db9a54107a42e2150e2dfc27ab0acb5600ec0ed09e0512c2b7a21dd2105125d4f4d482348c807bf87f2d96131ce5b46e89d60a3b6f67d3a53'
'ea457b46a2fc9f1a3ea8e99f2cd0771a587cff89f42335fdaf55988dda0376a1fea73b660174c9f1906a304bace68bffec30b70b20dafc05ebae8854d9aadb13'
)
-prepare() {
- cd "${pkgname}-${pkgver}"
- patch -p0 --input="${srcdir}/0001-Use-shared-version-of-libjpeg-turbo.patch"
-}
-
build() {
cd ${pkgname}-${pkgver}/linux
- make
+ # All JPEG* parameters are needed to use shared version of libturbojpeg instead of
+ # static one.
+ make JPEG_DIR="" JPEG_INCLUDE="" JPEG_LIB="" JPEG=$(pkg-config --libs --cflags libturbojpeg)
}
package() {