summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelics@felics-tablet2017-12-17 20:56:37 +0100
committerfelics@felics-tablet2017-12-17 20:56:37 +0100
commit11bc95e2d592bc83688fae8452ffdf6d9bd89056 (patch)
tree002b1c681617bd4aa5a7712c4b49501f787e6eba
parent371191eab90cd04bae6017ad01a9116aa269b38d (diff)
downloadaur-11bc95e2d592bc83688fae8452ffdf6d9bd89056.tar.gz
made an abstraction in the PKGBUILD.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 058ddd2b372..88c9ac862af 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = idos-timetable-browser-latest
pkgdesc = Offline railway and other public transport timetable search engine by CHAPS. (Czech language by default.)
pkgver = 1.27_lib2.9.0.0
- pkgrel = 1
+ pkgrel = 2
epoch = 0
url = http://chaps.cz/eng/download/idos/zip#kotvaprg
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index d995711d6f3..c97bd3560af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ _pkgname=idos-timetable-browser
pkgname="${_pkgname}-latest"
epoch=0
pkgver=1.27_lib2.9.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Offline railway and other public transport timetable search engine by CHAPS. (Czech language by default.)"
arch=('i686' 'x86_64')
url="http://chaps.cz/eng/download/idos/zip#kotvaprg"
@@ -42,9 +42,10 @@ conflicts=("${_pkgname}")
replaces=("${_pkgname}<=${pkgver}")
+_target="ttakt.zip"
source=(
- "ttakt.zip::http://ttakt.chaps.cz/TTAktual/Win/Zip/TTAKT.ZIP"
+ "${_target}::http://ttakt.chaps.cz/TTAktual/Win/Zip/TTAKT.ZIP"
"idos-timetable-browser.sh"
"IDOS-Licence.pdf::http://chaps.cz/files/idos/IDOS-Licence.pdf"
"license-dummy.txt"
@@ -78,7 +79,7 @@ package() {
install -d -m755 "${_instdir}"
cd "${_instdir}" && {
- unzip "${srcdir}/ttakt.zip"
+ unzip "${srcdir}/${_target}"
chmod 644 *
chmod 755 TT.exe
}