Do not delete *.la files manually

Since abuild v2.22.0, these are removed automatically unless 'libtool'
option has been specified.
parent ca35fd9d
...@@ -54,9 +54,9 @@ build() { ...@@ -54,9 +54,9 @@ build() {
package() { package() {
cd "$srcdir"/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
make -j1 DESTDIR="$pkgdir" install || return 1 make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
sed -i "s:^countdictstack: \0:" "$pkgdir"/usr/bin/psset || return 1 sed -i "s:^countdictstack: \0:" "$pkgdir"/usr/bin/psset || return 1
} }
md5sums="781ac3d9b213fa3e1ed0d79f986dc8c7 a2ps-4.14.tar.gz md5sums="781ac3d9b213fa3e1ed0d79f986dc8c7 a2ps-4.14.tar.gz
93011b58e9f20a7fafa31287a51884a4 a2ps-4.13c-fnmatch-replacement.patch 93011b58e9f20a7fafa31287a51884a4 a2ps-4.13c-fnmatch-replacement.patch
2e493d0bc00d71eb3e8a9b6febc52b69 a2ps-4.13c-emacs.patch 2e493d0bc00d71eb3e8a9b6febc52b69 a2ps-4.13c-emacs.patch
......
...@@ -40,7 +40,6 @@ build() { ...@@ -40,7 +40,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1 install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1
} }
......
...@@ -58,8 +58,6 @@ build() { ...@@ -58,8 +58,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/abiword*/plugins/*.la \
"$pkgdir"/usr/lib/*.la || return 1
} }
_do_plugin() { _do_plugin() {
......
...@@ -45,8 +45,6 @@ build() { ...@@ -45,8 +45,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DIST_ROOT="$pkgdir" install install-lib install-dev || return 1 make DIST_ROOT="$pkgdir" install install-lib install-dev || return 1
rm "$pkgdir"/usr/lib/*.la "$pkgdir"/lib/*.la "$pkgdir"/lib/*.a \
|| return 1
chown -R root:root "$pkgdir"/* chown -R root:root "$pkgdir"/*
} }
......
...@@ -50,7 +50,6 @@ package() { ...@@ -50,7 +50,6 @@ package() {
make DESTDIR="$pkgdir" install pkgconfigdir=/usr/lib/pkgconfig\ make DESTDIR="$pkgdir" install pkgconfigdir=/usr/lib/pkgconfig\
DATADIRNAME=share \ DATADIRNAME=share \
|| return 1 || return 1
rm -f "$pkgdir"/usr/lib/*.la
} }
md5sums="9ef86952c947aa27a1a888b7735d60b3 adwaita-icon-theme-3.16.2.1.tar.xz" md5sums="9ef86952c947aa27a1a888b7735d60b3 adwaita-icon-theme-3.16.2.1.tar.xz"
......
...@@ -58,7 +58,6 @@ build() { ...@@ -58,7 +58,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
} }
md5sums="1bdd9f8a06e6085ea4cc38ce010ef60b afpfs-ng-0.8.1.tar.bz2 md5sums="1bdd9f8a06e6085ea4cc38ce010ef60b afpfs-ng-0.8.1.tar.bz2
......
...@@ -48,7 +48,6 @@ build() { ...@@ -48,7 +48,6 @@ build() {
package() { package() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install || return 1 make -j1 DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -iname *.la -delete
} }
md5sums="de67e0eca72474d6b1121037dafe1024 alsa-lib-1.0.29.tar.bz2 md5sums="de67e0eca72474d6b1121037dafe1024 alsa-lib-1.0.29.tar.bz2
......
...@@ -38,7 +38,6 @@ package() { ...@@ -38,7 +38,6 @@ package() {
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/build-1/libtool' mod_auth_radius-2.0.la "$pkgdir"/usr/lib/apache2/ /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/build-1/libtool' mod_auth_radius-2.0.la "$pkgdir"/usr/lib/apache2/
/usr/share/build-1/libtool --mode=install install mod_auth_radius-2.0.la "$pkgdir"/usr/lib/apache2/ /usr/share/build-1/libtool --mode=install install mod_auth_radius-2.0.la "$pkgdir"/usr/lib/apache2/
install -D -m644 ../../mod-auth-radius.conf "$pkgdir"/etc/apache2/conf.d/mod-auth-radius.conf install -D -m644 ../../mod-auth-radius.conf "$pkgdir"/etc/apache2/conf.d/mod-auth-radius.conf
rm "$pkgdir"/usr/lib/apache2/*.la
} }
md5sums="87d8ef049736254cc09f8b34667f0e59 mod_auth_radius-1.5.8.tar md5sums="87d8ef049736254cc09f8b34667f0e59 mod_auth_radius-1.5.8.tar
......
...@@ -47,7 +47,6 @@ build() { ...@@ -47,7 +47,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/asb-plugins/*.la
} }
builder() { builder() {
......
...@@ -38,9 +38,7 @@ build() { ...@@ -38,9 +38,7 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/apr-util*/*.la \ rm "$pkgdir"/usr/lib/*.exp || return 1
"$pkgdir"/usr/lib/*.exp \
"$pkgdir"/usr/lib/*.la || return 1
} }
_mv_mod() { _mv_mod() {
......
...@@ -34,7 +34,6 @@ build() { ...@@ -34,7 +34,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
} }
# basicly everything thats not a *.so* file belongs to the -dev package # basicly everything thats not a *.so* file belongs to the -dev package
......
...@@ -38,8 +38,6 @@ build() { ...@@ -38,8 +38,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/aspell*/*.la \
"$pkgdir"/usr/lib/*.la || return 1
ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1 ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1
} }
md5sums="e66a9c9af6a60dc46134fdacf6ce97d7 aspell-0.60.6.1.tar.gz md5sums="e66a9c9af6a60dc46134fdacf6ce97d7 aspell-0.60.6.1.tar.gz
......
...@@ -42,7 +42,6 @@ build() { ...@@ -42,7 +42,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
find "$pkgdir"/usr/lib -name '*.la' -delete
} }
md5sums="8936488c8cdce0e158f80b2e247527f9 at-spi2-atk-2.16.0.tar.xz" md5sums="8936488c8cdce0e158f80b2e247527f9 at-spi2-atk-2.16.0.tar.xz"
......
...@@ -40,7 +40,6 @@ build() { ...@@ -40,7 +40,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
} }
md5sums="be6eeea370f913b7639b609913b2cf02 at-spi2-core-2.16.0.tar.xz" md5sums="be6eeea370f913b7639b609913b2cf02 at-spi2-core-2.16.0.tar.xz"
......
...@@ -31,7 +31,6 @@ build() { ...@@ -31,7 +31,6 @@ build() {
package() { package() {
cd "$srcdir"/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
} }
md5sums="c7c5002bd6e58b4723a165f1bf312116 atk-2.16.0.tar.xz" md5sums="c7c5002bd6e58b4723a165f1bf312116 atk-2.16.0.tar.xz"
......
...@@ -31,7 +31,6 @@ build() { ...@@ -31,7 +31,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la
} }
md5sums="fec7db3fc47ba2e0c95d130ec865a236 atkmm-2.22.7.tar.xz" md5sums="fec7db3fc47ba2e0c95d130ec865a236 atkmm-2.22.7.tar.xz"
......
...@@ -43,7 +43,6 @@ build() { ...@@ -43,7 +43,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="${pkgdir}" install || return 1 make DESTDIR="${pkgdir}" install || return 1
find "$pkgdir" -name \*.la -delete
} }
md5sums="53173eb29b3b6a906c2470d7572cca02 atril-1.10.2.tar.xz" md5sums="53173eb29b3b6a906c2470d7572cca02 atril-1.10.2.tar.xz"
......
...@@ -79,7 +79,6 @@ build() { ...@@ -79,7 +79,6 @@ build() {
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
} }
md5sums="d21a794cc1e2a1567d3d75b53b1f2f02 audacity-minsrc-2.1.0.tar.xz md5sums="d21a794cc1e2a1567d3d75b53b1f2f02 audacity-minsrc-2.1.0.tar.xz
......
...@@ -57,7 +57,6 @@ package() { ...@@ -57,7 +57,6 @@ package() {
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
rm -rf "$pkgdir"/usr/lib/charset.alias rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null rmdir -p "$pkgdir"/usr/lib 2>/dev/null
rm "$pkgdir"/usr/lib/*.la || return 1
} }
tests() { tests() {
......
...@@ -70,8 +70,7 @@ package() { ...@@ -70,8 +70,7 @@ package() {
for i in avahi-ui avahi-python; do for i in avahi-ui avahi-python; do
( cd $i && make DESTDIR="$pkgdir" install) || return 1 ( cd $i && make DESTDIR="$pkgdir" install) || return 1
done done
rm -r "$pkgdir"/usr/lib/*.la \ rm -r "$pkgdir"/usr/lib/py* || return 1
"$pkgdir"/usr/lib/py* || return 1
} }