summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEinhard Leichtfuß2017-11-22 11:56:52 +0100
committerEinhard Leichtfuß2017-11-22 11:56:52 +0100
commit3d31696affd9da4f90bd430be78f3799e2b23751 (patch)
tree185c24247a02f673bdf9b737e0b28eab6f84e0fc
parent566928d684b95ba2ad570689547c366f36cc9a49 (diff)
downloadaur-3d31696affd9da4f90bd430be78f3799e2b23751.tar.gz
Simplify PKGBUILD by using variables
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 64c3396109e..50f88b8cd1b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,11 +10,11 @@ url="http://www.freedict.org/"
license=('GPL')
optdepends=('dictd: dict client and server')
install=$pkgname.install
-source=("https://sourceforge.net/projects/freedict/files/${_lang}/$pkgver/freedict-eng-fra-$pkgver.tar.bz2")
+source=("https://sourceforge.net/projects/freedict/files/${_lang}/$pkgver/freedict-${_lang}-$pkgver.tar.bz2")
sha512sums=('f72eb5da576a3c8d459f2d39ed4adfa9442442293997319ce4558ad2cc6d2e4428d2b84567163961b338724990732dd98f6094768928c43da483f74183c7c99b')
package()
{
mkdir -p "$pkgdir/usr/share/dictd"
- cp eng-fra/eng-fra.{dict.dz,index} "$pkgdir/usr/share/dictd/"
+ cp ${_lang}/${_lang}.{dict.dz,index} "$pkgdir/usr/share/dictd/"
}