]> saetta.ns0.it Git - msys2/commitdiff
corebird: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Mon, 20 Apr 2015 15:17:38 +0000 (17:17 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:14:26 +0000 (15:14 +0200)
packages/mingw-w64-corebird/001-win.patch [new file with mode: 0644]
packages/mingw-w64-corebird/PKGBUILD [new file with mode: 0644]
packages/mingw-w64-corebird/corebird-i686.install [new file with mode: 0644]
packages/mingw-w64-corebird/corebird-x86_64.install [new file with mode: 0644]

diff --git a/packages/mingw-w64-corebird/001-win.patch b/packages/mingw-w64-corebird/001-win.patch
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/mingw-w64-corebird/PKGBUILD b/packages/mingw-w64-corebird/PKGBUILD
new file mode 100644 (file)
index 0000000..1e185ce
--- /dev/null
@@ -0,0 +1,57 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=corebird
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=1.0
+pkgrel=1
+arch=('any')
+pkgdesc="Native Gtk+ Twitter Client (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
+         "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas"
+         "${MINGW_PACKAGE_PREFIX}-librest
+         "${MINGW_PACKAGE_PREFIX}-libsoup"
+         "${MINGW_PACKAGE_PREFIX}-libgee"
+         "${MINGW_PACKAGE_PREFIX}-json-glib"
+         "${MINGW_PACKAGE_PREFIX}-sqlite3")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+             "${MINGW_PACKAGE_PREFIX}-vala"
+             "${MINGW_PACKAGE_PREFIX}-gobject-introspection")
+license=("GPL 3")
+url="http://corebird.baedert.org/"
+install=${_realname}-${CARCH}.install
+source=(https://github.com/baedert/${_realname}/archive/${pkgver}.tar.gz
+        001-win.patch)
+sha256sums=('0ca4ca20b0281b2901382810ef8bd1682bb896c3915ad3bea3f2a41461118001'
+            'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
+
+prepare() {
+  cd "${srcdir}"/${_realname}-${pkgver}
+
+  #patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+  AUTOPOINT='intltoolize --automake --copy' \
+    autoreconf -f -i
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  ../${_realname}-${pkgver}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib \
+    --disable-video
+
+    make
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}
diff --git a/packages/mingw-w64-corebird/corebird-i686.install b/packages/mingw-w64-corebird/corebird-i686.install
new file mode 100644 (file)
index 0000000..fcc957e
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
diff --git a/packages/mingw-w64-corebird/corebird-x86_64.install b/packages/mingw-w64-corebird/corebird-x86_64.install
new file mode 100644 (file)
index 0000000..6bcf507
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}