summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2019-03-30 06:47:58 -0400
committerKyle Keen2019-03-30 06:47:58 -0400
commit28e4560d719e17e0dafc0c69567ac12423c8a335 (patch)
treefd86509d70c92cac1dd7bc64e4e88a1ee007e6a7
parent85db5aafb479abafc180da9b6837a457a7a78d28 (diff)
downloadaur-28e4560d719e17e0dafc0c69567ac12423c8a335.tar.gz
cmake
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD17
2 files changed, 16 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8d79d38e454..a6a323475af 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sat Mar 30 10:47:57 UTC 2019
pkgbase = mozjpeg-git
pkgdesc = A fork of libjpeg-turbo with jpgcrush built in.
- pkgver = 20131001
+ pkgver = 20190328
pkgrel = 1
url = https://github.com/mozilla/mozjpeg/
arch = i686
@@ -8,6 +10,7 @@ pkgbase = mozjpeg-git
license = GPL
makedepends = git
makedepends = nasm
+ makedepends = cmake
provides = libjpeg=8.0.2
provides = turbojpeg
provides = libjpeg-turbo
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"
}