Skip to content

Commit

Permalink
Add PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
kata198 committed Jun 4, 2017
1 parent 410b242 commit e0326d6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

pkgname=shell-advancedutils
pkgver=2.0.0
pkgrel=1
pkgdesc="Advanced commands to extend SH/Bash shell scripting into a more powerful language"
# arch package url is https://github.com/kata198/shell-advancedutils-pkg
url="https://github.com/kata198/shell-advancedutils"
arch=(i686 x86_64)
license=(apache)
depends=(python bash)
builddepends=(fakeroot)
source=("https://github.com/kata198/shell-advancedutils/archive/${pkgver}.tar.gz")
md5sums=('776bd1189c89ec9fb93febda6c740a4f')

build() {
cd "${pkgname}-${pkgver}"

make

}

package() {
mkdir -p "${pkgdir}"

cd "${srcdir}/${pkgname}-${pkgver}"

make install DESTDIR="$pkgdir"

echo "Changing owner of ${pkgdir}"
chown -R root:root "${pkgdir}"
if [ $? -ne 0 ];
then
echo "Failed chown..."
fi
stat "${pkgdir}"
}

0 comments on commit e0326d6

Please sign in to comment.