summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKyle Keen2019-03-30 06:47:58 -0400
committerKyle Keen2019-03-30 06:47:58 -0400
commit28e4560d719e17e0dafc0c69567ac12423c8a335 (patch)
treefd86509d70c92cac1dd7bc64e4e88a1ee007e6a7 /PKGBUILD
parent85db5aafb479abafc180da9b6837a457a7a78d28 (diff)
downloadaur-mozjpeg-git.tar.gz
cmake
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aade07e942d..1eef3dd7346 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,12 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=mozjpeg-git
-pkgver=20131001
+pkgver=20190328
pkgrel=1
pkgdesc="A fork of libjpeg-turbo with jpgcrush built in."
url="https://github.com/mozilla/mozjpeg/"
license=("GPL")
arch=('i686' 'x86_64')
-makedepends=('git' 'nasm')
+makedepends=('git' 'nasm' 'cmake')
depends=()
source=('git+https://github.com/mozilla/mozjpeg.git')
md5sums=('SKIP')
@@ -23,8 +23,14 @@ pkgver() {
build()
{
cd "$_gitname"
- autoreconf -fiv
- ./configure --prefix=/usr --mandir=/usr/share/man
+ #autoreconf -fiv
+ mkdir -p build
+ cd build
+ cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/ \
+ -DCMAKE_INSTALL_MANDIR=/usr/share/man \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DWITH_JPEG8=1
+ make
}
# takes forever
@@ -35,9 +41,10 @@ build()
#}
package() {
- cd "$_gitname"
+ cd "$_gitname/build"
make DESTDIR="$pkgdir" docdir="/usr/share/doc/$pkgname" install
# license?
+ cd ..
install -m644 jpegint.h "$pkgdir/usr/include"
}