main/clutter: modernize abuild

This commit is contained in:
Roberto Oliveira 2018-04-01 13:44:45 +00:00 committed by Timo Teräs
parent 0bb83ca8b8
commit c02027fc27

View File

@ -2,40 +2,29 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=clutter pkgname=clutter
pkgver=1.26.2 pkgver=1.26.2
pkgrel=1 pkgrel=2
pkgdesc="library for creating fast, visually-appealing interfaces" pkgdesc="Library for creating fast, visually-appealing interfaces"
url="http://www.clutter-project.org/" url="http://www.clutter-project.org/"
arch="all" arch="all"
license="LGPL" license="LGPL"
depends=
depends_dev="gdk-pixbuf-dev json-glib-dev atk-dev pango-dev mesa-dev depends_dev="gdk-pixbuf-dev json-glib-dev atk-dev pango-dev mesa-dev
libxcomposite-dev libxi-dev cairo-dev cogl-dev" libxcomposite-dev libxi-dev cairo-dev cogl-dev"
makedepends="$depends_dev gobject-introspection-dev intltool" makedepends="$depends_dev gobject-introspection-dev intltool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
_builddir="${srcdir}/${pkgname}-${pkgver}" builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$_builddir" cd "$builddir"
./configure --prefix=/usr \ ./configure --prefix=/usr \
--sysconfdir=/etc || return 1 --sysconfdir=/etc
make || return 1 make
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
} }
sha512sums="c8008a1a1f111313d9abaff8d4415f112ddc32a02e08845f3735d33bb25b72b082f133daba06749bb9595eaf1ba83b308d30a413fbbe8dcdc1afdd7077a30937 clutter-1.26.2.tar.xz" sha512sums="c8008a1a1f111313d9abaff8d4415f112ddc32a02e08845f3735d33bb25b72b082f133daba06749bb9595eaf1ba83b308d30a413fbbe8dcdc1afdd7077a30937 clutter-1.26.2.tar.xz"