Created
January 16, 2019 22:55
-
-
Save itzexor/7b248b7e0e07c81b84975fa6a8a3a983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_pkgname=cjs | |
pkgname=${_pkgname}-g | |
pkgver=r2301.b52a8550 | |
pkgrel=1 | |
pkgdesc="Javascript Bindings for Cinnamon" | |
arch=(i686 x86_64) | |
url="https://github.com/linuxmint/cjs" | |
license=(GPL) | |
depends=(gtk3 gobject-introspection-runtime js52 dbus-glib) | |
makedepends=(autoconf-archive gobject-introspection) | |
provides=("${_pkgname}") | |
conflicts=("${_pkgname}") | |
options=(!emptydirs) | |
source=(${_pkgname}::git+https://github.com/linuxmint/cjs.git | |
build.patch) | |
sha256sums=('SKIP' | |
'20c68f34a928bd798dc79c2ddfc44761faba2f5554ceb422e4efbce9986013c8') | |
pkgver() { | |
cd ${srcdir}/${_pkgname} | |
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
cd "${srcdir}/${_pkgname}" | |
patch -Np1 -i ../build.patch | |
autoreconf -fi | |
} | |
build() { | |
cd ${srcdir}/${_pkgname} | |
./configure --prefix=/usr \ | |
--libexecdir=/usr/lib \ | |
--disable-static | |
#https://bugzilla.gnome.org/show_bug.cgi?id=656231 | |
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool | |
make | |
} | |
check() { | |
cd ${srcdir}/${_pkgname} | |
# Needs a display | |
make -k check || : | |
} | |
package() { | |
cd ${srcdir}/${_pkgname} | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment