Last active
July 2, 2016 20:18
-
-
Save dseg/cfeea025514a8fef33f6 to your computer and use it in GitHub Desktop.
簡単! パッケージを作成してAURへ登録しよう ref: http://qiita.com/dseg/items/32807a9305801f2d430c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -Syu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AURのパッケージを含め、システム一括更新 | |
$ yaourt -Syu --aur --noconfirm | |
# or | |
$ yaourt -Syua --noconfirm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ makepkg -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ makepkg -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mksrcinfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ namcap ビルド済みパッケージ.tar.xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_aur | |
$ chmod 400 ~/.ssh/id_aur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat <<EOL >>~/.ssh/config | |
Host aur.archlinux.org | |
User aur | |
IdentitiesOnly yes | |
IdentityFile ~/.ssh/id_aur | |
EOL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone ssh://aur.archlinux.org/<<パッケージ名>> | |
# 例 | |
$ git clone ssh://aur.archlinux.org/haxe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git commit -m "(例) Bump version to 0.26.0" .SRCINFO PKGBUILD | |
[master 45f3c31] Bump version to 0.26.0 | |
2 files changed, 8 insertions(+), 5 deletions(-) | |
$ git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makepkg -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yaourt -G パッケージ名 | |
# 例 | |
$ yaourt -G rebol | |
==> Download rebol sources | |
x .AURINFO | |
x .SRCINFO | |
x PKGBUILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makepkg -R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makepkg -Cc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
makepkg --nocheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd rebol | |
$ vi PKGBUILD | |
# pkgver を書き換えて保存 | |
$ updpkgsums | |
==> Retrieving sources... | |
==> Generating checksums for source files... | |
# ビルド | |
$ makepkg -s | |
# インストール | |
$ sudo pacman -U パッケージ名*.xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo pacman -S base-devel openssh git | |
$ sudo pacman -S pkgbuild-introspection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S namcap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yaourt -Ss パッケージ名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[dseg@vultrserver01]$ ls /usr/share/pacman/ | |
keyrings PKGBUILD-split.proto proto.install | |
PKGBUILD.proto PKGBUILD-vcs.proto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# パッケージを格納するディレクトリ作成 | |
mkdir ~/mypkg | |
# PKGBUILDのひな型をコピー | |
cd ~/mypkg | |
cp /usr/share/pacman.d/PKGBUILD.proto PKGBUILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgbase=paho-mqtt | |
pkgname=(python-$pkgbase python2-$pkgbase) | |
package_python-paho-mqtt() { | |
pkgdesc="Python client library for MQTT v3.1 and v3.1.1" | |
depends=('python') | |
cd $srcdir/$pkgbase-$pkgver | |
python setup.py install --root="$pkgdir" --optimize=1 | |
} | |
package_python2-paho-mqtt() { | |
pkgdesc="Python 2 client library for MQTT v3.1 and v3.1.1" | |
depends=('python2') | |
cd $srcdir/python2-$pkgbase-$pkgver | |
python2 setup.py install --root="$pkgdir" --optimize=1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment