From 32e9135cd6f9b693e450597fb8e4bc88a94687b3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 24 Apr 2012 16:03:39 +0000 Subject: main/ruby: build fix allow dirs but not files in /usr/local --- main/ruby/APKBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main/ruby/APKBUILD') diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index 1d5cca2d8..b722d325d 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -12,6 +12,7 @@ depends= makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev" subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.ruby-lang.org/pub/ruby/1.8/${pkgname}-${_pkgver}.tar.bz2" +options="!fhs" # # maybe its a good idea to split dep libs to seperate pkg's. # @@ -51,7 +52,14 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install - + if [ -d "$pkgdir"/usr/local ]; then + local f=$(cd "$pkgdir" ; find usr/local -type f) + if [ -n "$f" ]; then + error "Found files in /usr/local:" + echo "$f" + return 1 + fi + fi install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}"/COPYING || return 1 } -- cgit v1.2.3