--- libembysqlite3-0_3.18.0+0.orig/debian/compat
+++ libembysqlite3-0_3.18.0+0/debian/compat
@@ -0,0 +1,1 @@
+9
--- libembysqlite3-0_3.18.0+0.orig/debian/source/format
+++ libembysqlite3-0_3.18.0+0/debian/source/format
@@ -0,0 +1,1 @@
+3.0 (quilt)
--- libembysqlite3-0_3.18.0+0.orig/debian/copyright
+++ libembysqlite3-0_3.18.0+0/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sqlite3
+Source: http://www.sqlite.org/cgi/src/dir?ci=trunk
+
+Files: *
+Copyright: D. Richard Hipp <drh@hwaci.com>
+License: public-domain
+ The files listed have been put on the public domain by the sqlite3
+ contributors.
+
+Files: debian/*
+Copyright: 2016 Carlos Hernandez (hurricanehrndz) <carlos@techbyte.ca>,
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License version 2 as published
+ by the Free Software Foundation.
+ .
+ This program is distributed in the hope that it will be useful, but 
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this package; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA 
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
--- libembysqlite3-0_3.18.0+0.orig/debian/watch
+++ libembysqlite3-0_3.18.0+0/debian/watch
@@ -0,0 +1,1 @@
+version=3
--- libembysqlite3-0_3.18.0+0.orig/debian/rules
+++ libembysqlite3-0_3.18.0+0/debian/rules
@@ -0,0 +1,55 @@
+#!/usr/bin/make -f
+export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic -g -O2 -fno-strict-aliasing \
+	-DSQLITE_SECURE_DELETE \
+	-DSQLITE_ENABLE_COLUMN_METADATA \
+	-DSQLITE_ENABLE_FTS3 \
+	-DSQLITE_ENABLE_FTS3_PARENTHESIS=1 \
+	-DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
+	-DSQLITE_ENABLE_RTREE=1 \
+	-DSQLITE_ENABLE_UNLOCK_NOTIFY \
+	-DSQLITE_OMIT_LOOKASIDE=1 \
+	-DSQLITE_ENABLE_DBSTAT_VTAB \
+	-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \
+	-DSQLITE_ENABLE_LOAD_EXTENSION \
+	-DSQLITE_ENABLE_JSON1 \
+	-DSQLITE_LIKE_DOESNT_MATCH_BLOBS \
+	-DSQLITE_THREADSAFE=1 \
+	-DSQLITE_MAX_SCHEMA_RETRY=25 \
+	-DSQLITE_ENABLE_PREUPDATE_HOOK \
+	-DSQLITE_ENABLE_SESSION \
+	-DSQLITE_MAX_VARIABLE_NUMBER=250000
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_configure:
+	dh_auto_configure -- prefix=/usr/lib/emby-server \
+		--libdir=/usr/lib/emby-server/$(DEB_HOST_MULTIARCH)/ \
+		--disable-static \
+		--enable-threadsafe \
+		--disable-tcl \
+		--enable-load-extension \
+		--enable-json1 \
+		--enable-fts4 \
+		--enable-fts5 \
+		--enable-threads-override-locks
+
+override_dh_auto_test:
+
+override_dh_auto_build:
+	sed -i 's/libsqlite3/libembysqlite3/g' Makefile
+	dh_auto_build
+
+override_dh_makeshlibs:
+
+override_dh_auto_install:
+	dh_auto_install -- prefix=/usr/lib/emby-server/
+	rm -rf debian/$(PACKAGE)/usr/lib/emby-server/bin
+	rm -rf debian/$(PACKAGE)/usr/lib/emby-server/include
+	rm -rf debian/$(PACKAGE)/usr/lib/emby-server/share
+	rm -rf debian/$(PACKAGE)/usr/lib/emby-server/$(DEB_HOST_MULTIARCH)/libembysqlite3.la
--- libembysqlite3-0_3.18.0+0.orig/debian/changelog
+++ libembysqlite3-0_3.18.0+0/debian/changelog
@@ -0,0 +1,11 @@
+libembysqlite3-0 (3.18.0+0-0+1.59) UNRELEASED; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sat, 19 Aug 2017 16:14:03 +0000
+
+libembysqlite3-0 (3.15.0-1) UNRELEASED; urgency=low
+
+  * Initial release.
+
+ -- Carlos Hernandez <carlos@techbyte.ca>  Thu, 10 Nov 2016 18:33:52 +0000
--- libembysqlite3-0_3.18.0+0.orig/debian/control
+++ libembysqlite3-0_3.18.0+0/debian/control
@@ -0,0 +1,16 @@
+Source: libembysqlite3-0
+Section: devel
+Priority: extra
+Maintainer: Carlos Hernandez <carlos@techbyte.ca>
+Build-Depends: debhelper (>=9), dh-autoreconf
+Standards-Version: 3.9.7
+Homepage: http://emby.media
+
+Package: libembysqlite3-0
+Section: libs
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: SQLite 3 emby-server library
+ SQLite c library emby-server links.
--- libembysqlite3-0_3.18.0+0.orig/debian/README.Debian
+++ libembysqlite3-0_3.18.0+0/debian/README.Debian
@@ -0,0 +1,6 @@
+libembysqlite3-0 for Debian based distributions
+
+SQLite C library modified for emby-server. Emby-Sever will link to this library
+file at runtime.
+
+ -- Carlos Hernandez <carlos@techbyte.ca>  Thu, 10 Nov 2016 18:33:52 +0000
