blob: 59c87b3bea0974dd4989c4d9c3a333746aba7d50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
_pkgcode=nw5Lk
pkgver=1_3_9126
pkgrel=3
wget --post-data "RefMem=&PostBack=${_pkgcode}" https://smath.com/en-US/file/${_pkgcode}/SMathStudioDesktop.${pkgver}.Mono.tar.gz
_pkgmd5sum=$(md5sum SMathStudioDesktop.${pkgver}.Mono.tar.gz |awk '{ print $1 }')
# echo ${_pkgmd5sum}
sed -i "11s/.*/pkgver=${pkgver}/" PKGBUILD
sed -i "12s/.*/pkgrel=${pkgrel}/" PKGBUILD
sed -i "14s/.*/_pkgcode=${_pkgcode}/" PKGBUILD
sed -i "23s/.*/md5sums=\(\'${_pkgmd5sum}\'\)/" PKGBUILD
rm SMathStudioDesktop.${pkgver}.Mono.tar.gz
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO makeSmath.sh
git commit -m "Update to ${pkgver} rel=${pkgrel}"
# git push
echo "Finished updating the SMATH package to ${pkgver}-rel=${pkgrel}"
|