Created
October 11, 2014 01:22
-
-
Save Narrat/7c39bdd7226bd2599950 to your computer and use it in GitHub Desktop.
Improvement for mmex-git PKGBuild
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
# Maintainer: Igor Borges <[email protected]> | |
_pkgname=mmex | |
pkgname=mmex-git | |
pkgver=1.1.r347.gc991818 | |
pkgrel=1 | |
pkgdesc="Money Manager Ex, git version" | |
arch=('i686' 'x86_64') | |
url="http://www.moneymanagerex.org/" | |
license=('GPL') | |
depends=('wxsqlite3' 'cppunit' 'wxgtk2.8') # Dunno if wxgtk or wxgtk2.8 | |
makedepends=('git' 'gettext') | |
provides=('mmex') | |
conflicts=('mmex') | |
options=(!strip) | |
source=("$_pkgname::git://github.com/moneymanagerex/moneymanagerex.git" | |
"http://www.kryogenix.org/code/browser/sorttable/sorttable.js") | |
md5sums=('SKIP' | |
'3809d26cbae145842e56f374192e56d9') | |
pkgver() { | |
cd "$_pkgname" | |
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/v//' | |
} | |
prepare() { | |
cd "$_pkgname" | |
git clone --depth 1 https://github.com/moneymanagerex/wxsqlite3.git "${srcdir}/$_pkgname/lib/wxsqlite3/" | |
git clone --depth 1 https://github.com/moneymanagerex/cajun.git "${srcdir}/$_pkgname/src/cajun" | |
git clone --depth 1 https://github.com/moneymanagerex/html-template.git "${srcdir}/$_pkgname/src/html-template" | |
cp -R "${srcdir}/$_pkgname/src/html-template/"* "${srcdir}/$_pkgname/src/" | |
git clone --depth 1 https://github.com/moneymanagerex/mongoose.git "${srcdir}/$_pkgname/src/mongoose" | |
git clone --depth 1 https://github.com/moneymanagerex/LuaGlue.git "${srcdir}/$_pkgname/src/LuaGlue" | |
cp -R "${srcdir}/$_pkgname/src/LuaGlue/include/LuaGlue/"* "${srcdir}/$_pkgname/src/LuaGlue/" | |
git clone --depth 1 https://github.com/moneymanagerex/route.git "${srcdir}/$_pkgname/src/route" | |
git clone --depth 1 https://github.com/moneymanagerex/csv-parser.git "${srcdir}/$_pkgname/src/csv_parser" | |
cp -R "${srcdir}/$_pkgname/src/csv_parser/include/csv_parser/"* "${srcdir}/$_pkgname/src/csv_parser/" | |
cp -R "${srcdir}/$_pkgname/src/html-template/"* "${srcdir}/$_pkgname/3rd/cgitemplate/" | |
cp -R "${srcdir}/$_pkgname/src/mongoose/"* "${srcdir}/$_pkgname/3rd/mongoose/" | |
cp -R "${srcdir}/$_pkgname/src/csv_parser/"* "${srcdir}/$_pkgname/3rd/csv-parser/" | |
cp -R "${srcdir}/$_pkgname/src/route/"* "${srcdir}/$_pkgname/3rd/route/" | |
git clone --depth 1 https://github.com/nnnick/Chart.js.git "${srcdir}/$_pkgname/3rd/Chart.js" | |
git clone --depth 1 https://github.com/FVANCOP/ChartNew.js.git "${srcdir}/$_pkgname/3rd/ChartNew.js" | |
# Copy sortable.js to 3rd | |
cp ${srcdir}/sorttable.js "3rd/sorttable.js/sorttable.js" | |
} | |
build() { | |
cd "$_pkgname" | |
./configure --prefix=/usr \ | |
--enable-unicode \ | |
--enable-shared \ | |
--with-wxshared \ | |
--with-gtk \ | |
--with-wx-config=/usr/lib/wx/config/gtk2-unicode-release-2.8 \ | |
#LIBS="-ldl -lm -lpthread" | |
make | |
cd "po" | |
make | |
} | |
package() { | |
cd "$_pkgname" | |
make DESTDIR="$pkgdir" install | |
} | |
# vim:set ts=2 sw=2 et: |
Sorry, I somehow didn't notice the comments oO
This was an attempt to help someone who wanted to maintain a -git based PKGBUILD on AUR
https://aur.archlinux.org/packages/mmex-git/
A tag based package exists (which shall end-users use) and the -git packages should normally only used by people who want to contribute to upstream.
The stuff could be added there, but then this should be used
https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/moneymanagerex
The current -git PKGBUILD from the AUR is somewhat malformed now
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And
I don't reccomend to use trunk to build mmex for end users. tag should used. trunk only for beta-testers.