aboutsummaryrefslogtreecommitdiffstats
path: root/main/gtksourceview2/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-31 07:30:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-31 09:15:35 +0000
commit6a959530ee03e39fa63a30460c081c30fb85fc83 (patch)
tree5df238e9f2816b189c27d3b0a25c93eeedcb3b10 /main/gtksourceview2/APKBUILD
parentb74898674e474c863aafe0562e70ac7db20981b4 (diff)
downloadaports-6a959530ee03e39fa63a30460c081c30fb85fc83.tar.bz2
aports-6a959530ee03e39fa63a30460c081c30fb85fc83.tar.xz
main/gtksourceview2: compat aport
mousepad needs gtksourceview for gtk 2.
Diffstat (limited to 'main/gtksourceview2/APKBUILD')
-rw-r--r--main/gtksourceview2/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/gtksourceview2/APKBUILD b/main/gtksourceview2/APKBUILD
new file mode 100644
index 0000000000..dedf352e19
--- /dev/null
+++ b/main/gtksourceview2/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtksourceview2
+pkgver=2.10.4
+pkgrel=0
+pkgdesc="A text widget adding syntax highlighting and more to GNOME"
+url="http://live.gnome.org/GtkSourceView"
+arch="all"
+license="GPL"
+replaces="gtksourceview"
+depends=
+depends_dev="gtk+2.0-dev libxml2-dev"
+makedepends="$depends_dev gobject-introspection-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://ftp.gnome.org/pub/gnome/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.bz2"
+
+_builddir="$srcdir/gtksourceview-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" -name '*.la' -delete
+}
+md5sums="342666cba9eb2643e5166a0cb58203d2 gtksourceview-2.10.4.tar.bz2"