From d141b6c1368ff9a2052f791e70d6d05945e0c17b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 22 Jan 2011 17:07:13 -0600 Subject: main/sqlite: lobotomize in the name of mozilla insanity --- main/sqlite/APKBUILD | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD index d59e825bb..254d6b424 100644 --- a/main/sqlite/APKBUILD +++ b/main/sqlite/APKBUILD @@ -6,7 +6,7 @@ _y=${pkgver%.*} _y=${_y#*.} _z=${pkgver##*.} _ver=${_x}0${_y}0${_z}00 -pkgrel=1 +pkgrel=2 pkgdesc="A C library that implements an SQL database engine" url="http://www.sqlite.org/" arch="all" @@ -42,7 +42,26 @@ build() { make || return 1 } +dev() { + local i= j= + depends="$pkgname $depends_dev" + + cd "$pkgdir" || return 0 + for i in usr/include usr/lib/pkgconfig; do + if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then + d="$subpkgdir/${i%/*}" # dirname $i + mkdir -p "$d" + mv "$pkgdir/$i" "$d" + rmdir "$pkgdir/${i%/*}" 2>/dev/null + fi + done + + return 0 +} + package() { + replaces="sqlite-dev" + cd "$_builddir" make DESTDIR=${pkgdir} install || return 1 install -Dm0644 sqlite3.1 ${pkgdir}/usr/share/man/man1/sqlite3.1 -- cgit v1.2.3