diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-22 17:07:13 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-22 17:07:13 -0600 |
commit | d141b6c1368ff9a2052f791e70d6d05945e0c17b (patch) | |
tree | 52ad9bbaa6db460637bf2f5b44666092ab03d9b2 /main/sqlite/APKBUILD | |
parent | f544e5ca7ad1d611a504866d5a7a048968759737 (diff) | |
download | aports-d141b6c1368ff9a2052f791e70d6d05945e0c17b.tar.bz2 aports-d141b6c1368ff9a2052f791e70d6d05945e0c17b.tar.xz |
main/sqlite: lobotomize in the name of mozilla insanity
Diffstat (limited to 'main/sqlite/APKBUILD')
-rw-r--r-- | main/sqlite/APKBUILD | 21 |
1 files changed, 20 insertions, 1 deletions
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 |