wok-current annotate gnome-alsamixer/receipt @ rev 20648
Up zstd (1.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 12 12:12:27 2019 +0100 (2019-01-12) |
parents | 73e9a7d984fc |
children | b78e79c31b1f |
rev | line source |
---|---|
al@19128 | 1 # SliTaz package receipt. |
al@19128 | 2 |
al@19128 | 3 PACKAGE="gnome-alsamixer" |
al@19128 | 4 VERSION="0.9.7~cvs.20060916.ds.1" |
al@19128 | 5 CATEGORY="sound" |
al@19128 | 6 SHORT_DESC="ALSA sound mixer for GNOME" |
al@19128 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19128 | 8 LICENSE="GPL2" |
al@19128 | 9 WEB_SITE="https://packages.debian.org/en/sid/gnome-alsamixer" |
al@19128 | 10 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz" |
al@19128 | 11 WGET_URL="http://http.debian.net/debian/pool/main/g/$PACKAGE/$TARBALL" |
al@19128 | 12 EXTRA_URL="${WGET_URL/.orig/-5.debian}" |
pascal@20475 | 13 EXTRA_SOURCE_FILES="$(basename $EXTRA_URL)" |
al@19128 | 14 |
al@19128 | 15 DEPENDS="gtk+ libgnomeui libgnome-keyring" |
al@19128 | 16 BUILD_DEPENDS="automake autoconf glib dbus-dev libgnomeui-dev libgnome-dev \ |
al@19128 | 17 GConf-dev alsa-lib-dev" |
al@19128 | 18 |
al@19128 | 19 # Rules to configure and make the package. |
al@19128 | 20 compile_rules() |
al@19128 | 21 { |
al@19128 | 22 if [ ! -f "$SRC/$(basename "$EXTRA_URL")" ]; then |
al@19128 | 23 wget $EXTRA_URL -P $SRC |
al@19128 | 24 fi |
al@19128 | 25 |
al@19128 | 26 tar -xzf $SRC/$(basename "$EXTRA_URL") |
al@19128 | 27 |
al@19128 | 28 while read i; do |
al@19128 | 29 patch -p1 -i $src/debian/patches/$i |
al@19128 | 30 done < $src/debian/patches/series |
al@19128 | 31 |
al@19128 | 32 cp $stuff/ru.po $src/po |
al@19128 | 33 sed -i 's|pt_BR|& ru|' $src/configure.ac |
al@19128 | 34 |
al@19128 | 35 ./autogen.sh |
al@19128 | 36 make && make install |
al@19128 | 37 |
al@19128 | 38 mkdir -p $install/usr/share/applications $install/usr/share/man/man1 |
al@19128 | 39 cp -a $src/debian/$PACKAGE.desktop $install/usr/share/applications |
al@19128 | 40 cp -a $src/debian/$PACKAGE.1 $install/usr/share/man/man1 |
al@19128 | 41 gzip -9 $install/usr/share/man/man1/$PACKAGE.1 |
al@19128 | 42 } |
al@19128 | 43 |
al@19128 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19128 | 45 genpkg_rules() |
al@19128 | 46 { |
al@19128 | 47 cp -a $install/* $fs |
al@19128 | 48 find $fs -name '*.xpm' -delete |
al@19128 | 49 } |