diff options
author | jgmdev | 2016-09-17 13:32:19 -0400 |
---|---|---|
committer | jgmdev | 2016-09-17 13:32:19 -0400 |
commit | 638c80004e4bc1ce5db11e57cfe367467a707b5c (patch) | |
tree | b07bbfb9c61bdf417e68a032ab610b9a315a7965 /PKGBUILD | |
parent | 4e7d9a68203712eb6f86bc39f10ba3ad88c8738c (diff) | |
download | aur-638c80004e4bc1ce5db11e57cfe367467a707b5c.tar.gz |
Upgraded the package to get manager-accounting version from the extracted .dsc file name, updated the manager-accounting.zip download location and added a gitignore file.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 64 |
1 files changed, 35 insertions, 29 deletions
@@ -1,7 +1,8 @@ -# Maintainer: François M. <francois5537 @ gmail.com> +# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com> +# Contributor: François M. <francois5537 @ gmail.com> pkgname=manager-accounting -pkgver=15.6.86 +pkgver=16.9.44 pkgrel=1 pkgdesc='Manager is free accounting software for small business' arch=('i686' 'x86_64') @@ -11,41 +12,46 @@ depends=('mono' 'gtk2' 'gtk-sharp-2' 'webkit-sharp') makedepends=('unzip') install=manager-accounting.install options=('!makeflags') -source=("LICENSE" - "fix-path.patch" - "http://download.manager.io/version.txt" - "http://download.manager.io/$pkgname.zip") -sha256sums=('bd144763506372341487683b0f28ad627e7e8923ea8ef8569541b55f4b987061' - '81e73bbae1a386dc76bd1f8b018868864c802cb242667d18b9d6f005518859f7' - 'SKIP' - 'SKIP') +source=( + "LICENSE" + "fix-path.patch" + "https://mngr.s3.amazonaws.com/manager-accounting.zip" +) +sha256sums=( + 'bd144763506372341487683b0f28ad627e7e8923ea8ef8569541b55f4b987061' + '81e73bbae1a386dc76bd1f8b018868864c802cb242667d18b9d6f005518859f7' + 'SKIP' +) pkgver() { - cd "$srcdir" - echo $(head -n 1 version.txt) + cd "$srcdir" + echo $(ls *.dsc | egrep -o '[0-9]+\.[0-9]+\.[0-9]+') } prepare() { - cd "$srcdir" + cd "$srcdir" - # Check checksum - chksum=($(sed '15q;d' "${pkgname}_${pkgver}.dsc")) - filesum=($(sha256sum "${pkgname}_${pkgver}.tar.gz")) - if [ $chksum != $filesum ]; then - error "Checksums not matching" - exit - fi + # Get current version of application + pkgver=$(ls *.dsc | egrep -o '[0-9]+\.[0-9]+\.[0-9]+') - # Extract, patch - tar --strip-components=1 -zxvf "${pkgname}_${pkgver}.tar.gz" - patch -p1 -i fix-path.patch + # Check checksum + chksum=($(sed '15q;d' "${pkgname}_${pkgver}.dsc")) + filesum=($(sha256sum "${pkgname}_${pkgver}.tar.gz")) + if [ $chksum != $filesum ]; then + error "Checksums not matching" + exit + fi + + # Extract, patch + tar --strip-components=1 -zxvf "${pkgname}_${pkgver}.tar.gz" + patch -p1 -i fix-path.patch } package() { - install -d $pkgdir/usr/{bin,lib,share/{applications,icons}} - cp -r opt/manager-accounting $pkgdir/usr/lib/ - cp -r usr/share/icons/* $pkgdir/usr/share/icons/ - ln -s /usr/lib/manager-accounting/manager-accounting $pkgdir/usr/bin/manager-accounting - install -m644 usr/share/applications/$pkgname.desktop $pkgdir/usr/share/applications/ - install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -d $pkgdir/usr/{bin,lib,share/{applications,icons}} + cp -r opt/manager-accounting $pkgdir/usr/lib/ + cp -r usr/share/icons/* $pkgdir/usr/share/icons/ + ln -s /usr/lib/manager-accounting/manager-accounting $pkgdir/usr/bin/manager-accounting + install -m644 usr/share/applications/$pkgname.desktop $pkgdir/usr/share/applications/ + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |