diff --git a/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-devel.virtualpkgd b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-devel.virtualpkgd
new file mode 100644
index 00000000000..271fdf65db9
--- /dev/null
+++ b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-devel.virtualpkgd
@@ -0,0 +1,10 @@
+
+
+
+
+ virtual-pkgver
+ jpeg-devel-8
+ target-pkgpattern
+ libjpeg-turbo-devel>=0
+
+
diff --git a/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-tools.virtualpkgd b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-tools.virtualpkgd
new file mode 100644
index 00000000000..b68a7bfbcdf
--- /dev/null
+++ b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo-tools.virtualpkgd
@@ -0,0 +1,10 @@
+
+
+
+
+ virtual-pkgver
+ jpeg-tools-8
+ target-pkgpattern
+ libjpeg-turbo-tools>=0
+
+
diff --git a/srcpkgs/libjpeg-turbo/files/libjpeg-turbo.virtualpkgd b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo.virtualpkgd
new file mode 100644
index 00000000000..48bafacb44e
--- /dev/null
+++ b/srcpkgs/libjpeg-turbo/files/libjpeg-turbo.virtualpkgd
@@ -0,0 +1,10 @@
+
+
+
+
+ virtual-pkgver
+ jpeg-8
+ target-pkgpattern
+ libjpeg-turbo>=0
+
+
diff --git a/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template b/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template
index a0618ec5822..6a2eebdd437 100644
--- a/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template
+++ b/srcpkgs/libjpeg-turbo/libjpeg-turbo-devel.template
@@ -11,9 +11,12 @@ Add_dependency run libjpeg-turbo
provides="jpeg-devel-8"
replaces="jpeg-devel>=0"
+revision=1
+
do_install()
{
- mkdir -p ${DESTDIR}/usr/lib
- mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
- mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
+ vmove usr/include usr
+ vmove "usr/lib/*.a" usr/lib
+ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
+ 644 etc/xbps/virtualpkg.d ${pkgname}
}
diff --git a/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template b/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template
index 736089124dc..dd958ee65f5 100644
--- a/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template
+++ b/srcpkgs/libjpeg-turbo/libjpeg-turbo-tools.template
@@ -11,8 +11,12 @@ Add_dependency run libjpeg-turbo ">=${version}"
provides="jpeg-tools-8"
replaces="jpeg-tools>=0"
+revision=1
+
do_install()
{
- mkdir -p ${DESTDIR}/usr
- mv ${SRCPKGDESTDIR}/usr/{bin,share} ${DESTDIR}/usr
+ vmove usr/bin usr
+ vmove usr/share/man usr/share
+ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
+ 644 etc/xbps/virtualpkg.d ${pkgname}
}
diff --git a/srcpkgs/libjpeg-turbo/template b/srcpkgs/libjpeg-turbo/template
index 7a2f8744ef4..19c12ceecaa 100644
--- a/srcpkgs/libjpeg-turbo/template
+++ b/srcpkgs/libjpeg-turbo/template
@@ -1,6 +1,7 @@
# Template build file for 'libjpeg-turbo'.
pkgname=libjpeg-turbo
version=1.1.1
+revision=1
homepage="http://libjpeg-turbo.virtualgl.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
build_style=gnu_configure
@@ -26,6 +27,8 @@ Add_dependency build nasm
post_install() {
vinstall jpegint.h 644 usr/include
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname}
+ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
+ 644 etc/xbps/virtualpkg.d ${pkgname}
rm -f ${DESTDIR}/usr/bin/jpegut
rm -f ${DESTDIR}/usr/bin/jpgtest