diff --git a/xfce4-screenshooter/Pkgfile b/xfce4-screenshooter/Pkgfile index e487191..50cc463 100644 --- a/xfce4-screenshooter/Pkgfile +++ b/xfce4-screenshooter/Pkgfile @@ -10,21 +10,31 @@ version=1.8.2 release=1 source=(http://archive.xfce.org/src/apps/$name/${version%.*}/$name-$version.tar.bz2) -build () { - cd $name-$version +build () +{ + # go into the source directory + cd $SRC/$name-$version - ./configure --prefix=/usr \ - --mandir=/usr/man \ - --libexecdir=/usr/lib \ - --disable-nls \ - --disable-static \ - --disable-debug - make - make install DESTDIR=$PKG + # configure xfce4-screenshooter + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --libexecdir=/usr/lib \ + --disable-nls \ + --disable-static \ + --disable-debug \ + --disable-dependency-tracking - rm -rf $PKG/usr/share/locale - rm -rf $PKG/usr/share/xfce4/doc/{??,??_??,???} - find $PKG/usr/share -type f -name '*.desktop' \ - -exec sed -r '/\[.+\]=/d' -i {} \; + + # make xfce4-screenshooter + make + make install DESTDIR=$PKG + + + # cleanup + rm -rf $PKG/usr/share/locale + rm -rf $PKG/usr/share/xfce4/doc/{??,??_??,???} + find $PKG/usr/share -type f -name '*.desktop' \ + -exec sed -r '/\[.+\]=/d' -i {} \; }