Files
chromebrew/packages/pygtk.rb

37 lines
1.6 KiB
Ruby

require 'package'
class Pygtk < Package
description 'PyGTK is a Python package which provides bindings for GObject based libraries such as GTK+, GStreamer, WebKitGTK+, GLib, GIO and many more.'
homepage 'http://www.pygtk.org/'
version '2.24.0'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2'
source_sha256 'cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pygtk/2.24.0_armv7l/pygtk-2.24.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pygtk/2.24.0_armv7l/pygtk-2.24.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pygtk/2.24.0_i686/pygtk-2.24.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/pygtk/2.24.0_x86_64/pygtk-2.24.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '8860c0568f4a0c0ebc653d1225e4e110876462711df525ee2a9a59439d242030',
armv7l: '8860c0568f4a0c0ebc653d1225e4e110876462711df525ee2a9a59439d242030',
i686: '74b0ccca72df9625001a5582a601b0bf12b8b5f889998b4a199526d15f17ef5f',
x86_64: '1cee38a4d4e85c1c17974b4939a48da261d785f00c5916a97405e48c4acb4f1c',
})
depends_on 'libglade'
depends_on 'pygobject2'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end