summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD27
2 files changed, 14 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 63a1642e98f..e59693368bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = fortune-mod-it
pkgdesc = Collection of Italian fortune cookie files
pkgver = 1.99
- pkgrel = 2
+ pkgrel = 3
url = http://www.fortune-it.net/
arch = any
groups = fortune-mods
diff --git a/PKGBUILD b/PKGBUILD
index 7167736d2b7..c7850a9dec8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Contributor: Paolo Palmieri <palmaway@gmx.it>
# Contributor: Alessio 'Bl@ster' Biancalana <dottorblaster@archlinux.us>
+# Contributor: Federico Giuliani <federico.giuliani86@gmail.com>
pkgname=fortune-mod-it
pkgver=1.99
-pkgrel=2
+pkgrel=3
pkgdesc="Collection of Italian fortune cookie files"
url="http://www.fortune-it.net/"
arch=('any')
@@ -13,22 +14,20 @@ license=('custom')
source=(http://www.fortune-it.net/download/fortune-it-1.99.tar.gz)
md5sums=('b395af4484a8101a3f92163ab8667d8b')
-build() {
- cd $startdir/src/fortune-it-$pkgver/testi
- mkdir -p $startdir/pkg/usr/share/fortune/it
- cp -v * $startdir/pkg/usr/share/fortune/it
+package(){
+ cd ${srcdir}/fortune-it-${pkgver}/testi
+ mkdir -p ${pkgdir}/usr/share/fortune/it
+ cp -v * ${pkgdir}/usr/share/fortune/it
- cd $startdir/pkg/usr/share/fortune/it
+ cd ${pkgdir}/usr/share/fortune/it
for _file in *; do
strfile $_file
done
-}
-
-package(){
- mkdir -p $startdir/pkg/usr/share/fortune/off
- mv $startdir/pkg/usr/share/fortune/it/*-o* $startdir/pkg/usr/share/fortune/off/
+
+ mkdir -p ${pkgdir}/usr/share/fortune/it-off
+ mv ${pkgdir}/usr/share/fortune/it/*-o* ${pkgdir}/usr/share/fortune/it-off/
- cd $startdir/src/fortune-it-$pkgver/
- mkdir -p $startdir/pkg/usr/share/licenses/custom/fortune-mod-it/
- cp COPYING $startdir/pkg/usr/share/licenses/custom/fortune-mod-it/COPYING
+ cd ${srcdir}/fortune-it-${pkgver}/
+ mkdir -p ${pkgdir}/usr/share/licenses/custom/fortune-mod-it/
+ cp COPYING ${pkgdir}/usr/share/licenses/custom/fortune-mod-it/COPYING
}