Skip to content

Instantly share code, notes, and snippets.

@trickart
Last active June 10, 2016 04:59
Show Gist options
  • Save trickart/30ae453b0505dba7a29a to your computer and use it in GitHub Desktop.
Save trickart/30ae453b0505dba7a29a to your computer and use it in GitHub Desktop.
PKGBUILDの雛形。git+のところはgitリポジトリのURL入れるとフェッチできるやつ。.gitignoreはAURにpushする時用
pkgname=
pkgver=
pkgrel=1
pkgdesc=""
arch=('i686' 'x86_64')
url=""
license=('custom')
depends=('')
makedepends=('')
source=(git+
http://)
sha256sums=('')
build() {
cd "${srcdir}/src"
./configure
make
}
package(){
cd $pkgname
#make installを使う場合
make DESTDIR="$pkgdir/" install
#個別に入れる場合
install -D -m 755 hoge "${pkgdir}/path/hoge"
}
.gitignore
pkg/
src/
*-*.pkg.tar*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment