diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 13:56:14 -0300 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-14 03:32:19 +0200 |
commit | 3a0ea187bdf95ec88e57655b53dd568b9d956a54 (patch) | |
tree | d230c4d34936df04ecf26a5d907761204780d05f /community/zenity | |
parent | 0e4c80b2ad9016e8158f37c4481dd6921582707f (diff) | |
download | aports-3a0ea187bdf95ec88e57655b53dd568b9d956a54.tar.bz2 aports-3a0ea187bdf95ec88e57655b53dd568b9d956a54.tar.xz |
community/zenity: modernize abuild
Diffstat (limited to 'community/zenity')
-rw-r--r-- | community/zenity/APKBUILD | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/community/zenity/APKBUILD b/community/zenity/APKBUILD index 05f029dbee..21a08a6d8e 100644 --- a/community/zenity/APKBUILD +++ b/community/zenity/APKBUILD @@ -7,43 +7,30 @@ pkgdesc="A GTK+-based xdialog replacement" url="http://www.gnome.org/" arch="all" license="GPL2+" -depends= makedepends="gtk+3.0-dev intltool libxml2-utils libnotify-dev itstool" -install="" subpackages="$pkgname-lang $pkgname-doc" case $pkgver in *.*.*.*) _v=${pkgver%.*.*};; *.*.*) _v=${pkgver%.*};; *.*) _v=$pkgver;; esac -source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${_v}/${pkgname}-${pkgver}.tar.xz - " +source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${_v}/${pkgname}-${pkgver}.tar.xz" -_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 -} +builddir="${srcdir}/${pkgname}-${pkgver}" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --sysconfdir=/etc \ - || return 1 - make || return 1 + --sysconfdir=/etc + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } sha512sums="b24291166221cc2dabeabfeab7ca00ca63ff21c12a4eb327cd35ac43f485b8d4a858dd717df1b35b8bd3fd89d0bb235609855c6d349b76879b0f77b4fedd4dd9 zenity-3.24.0.tar.xz" |