meta: Add PKGBUILDs

Instead of having one big PKGBUILD, I have opted instead to split my
Arch configuration into multiple PKGBUILDs.

Of course, splitting the packages *too much* has diminishing returns,
but some separation makes it easier for both myself and others to pick
and choose any wanted functionality.
This commit is contained in:
Donovan Glover 2018-11-12 20:59:39 -05:00
parent 13afe8d8cd
commit 881f587fdc
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
7 changed files with 243 additions and 0 deletions

13
.PKGBUILDs/README.md Normal file
View File

@ -0,0 +1,13 @@
# PKGBUILDs
Here are the PKGBUILDs I use to replicate my [Arch Linux](/.archlinux) rice. `muya.spec` is used to mimmic my entire [Fedora](/.fedora) setup. Change it as you see fit, or simply use what I use.
## Troubleshooting
### dnf: Remove unused dependencies
Unlike pacman, dnf will only remove unused dependencies if you use `dnf autoremove`.
### pacman: Invalid or corrupted package (PGP signature)
This happens when the keys used to sign packages have changed. Use `pacman-key --populate` to fetch new keys, followed by `--refresh-keys` to update any existing keys.

View File

@ -0,0 +1,14 @@
pkgname=tari-core
pkgver=0.1.0
pkgrel=1
pkgdesc="Core packages for my Arch setup."
arch=('any')
depends=(ttf-hack ttf-fira-mono ttf-roboto ttf-font-awesome borg
bspwm sxhkd dunst rofi compton
mpc mpd ncmpcpp mpv feh
stow htop neofetch xdo alsa-utils
zip unzip p7zip unrar ranger
xcape xorg-xmodmap xorg-xwininfo xorg-xrandr lxdm-gtk3
plasma-desktop kde-gtk-config plasma-pa arc-kde adapta-gtk-theme
python-pywal youtube-dl fdupes rng-tools weechat
zathura zathura-djvu zathura-pdf-mupdf kitty papirus-icon-theme)

View File

@ -0,0 +1,21 @@
_vimplugver='0.10.0'
pkgname=tari-dev
pkgver=0.1.0
pkgrel=1
pkgdesc="Packages I use relating to development and other things."
arch=('any')
depends=(vim neovim httpie exa fd ripgrep
fzf jq rsync git tig diff-so-fancy
tmux openssh nodejs npm yarn crystal
shards llvm rustup ansible docker docker-compose
bind-tools pacman-contrib nginx-mainline
jdk-openjdk texlive-core texlive-science
texlive-humanities texlive-fontsextra texlive-latexextra
texlive-bibtexextra minted)
source=("https://raw.githubusercontent.com/junegunn/vim-plug/${_vimplugver}/plug.vim")
sha256sums=('01a138fc0ed99ef2678ba004613acbf8b0c51a85a8d2a1b658ef87af722e98e1')
package() {
install -Dm 644 plug.vim "$pkgdir"/usr/share/vim/vimfiles/autoload/plug.vim
}

View File

@ -0,0 +1,42 @@
pkgname=tari-scripts
pkgver=0.1.0
pkgrel=1
pkgdesc="Visually appealing terminal scripts."
arch=('any')
source=('colorhash' 'colorhex' 'colorline' 'colorpanes'
'diamonds' 'pipes' 'pmabove' 'pmleft'
'dna' 'colortest' '256colortest' 'colorfade'
'ghosts' 'unowns' 'spaceinvaders')
sha256sums=('506b036cfce3229c922156f06a24ed2f796baa9b640c22beca23e12c8e04a8c0'
'de4df3f590fc349e471cfe84623c2a97757e9ade90d7fab7fb2921d59ffd464a'
'4c31394d04e16c39a04ea085858ece699f5f6ac846c7438ad860d519f09701fe'
'877452eb18bd94c00f9f3172f50d3980ce0c1446f0278afff1bbf4a6208cbcf6'
'56897e603eb5146f62cdc57a9573ed7c0bf5b1662351780be83275f95568ae18'
'466249fdb33dfe7c8fb20e63dc5a6f62038bca69538f5a2a38ef6e9e3d2433b2'
'e1f7dd3aa6cd9b8e3db189c4cf50d564d6605de81a6e552d4e97b804f79748d8'
'74102548cf7ea34846538115e26e2a7600f4705a8bbd2666aea5886d0365571f'
'6ae0d2b864bd9e0f47cac4533be8c9fc45b0c15b959c97699b07b08a2ad87342'
'a78f3d2f7665f3b2b5655da399d22a6573ea8898d69e71f99ac35ba28abe6a0c'
'006e6184c77864e943c412e4bbbd55a967fa7b930514982932015f1efa6b3a7b'
'14adff147f635206c77cce73f67547f5c39ddc419b9d8c9e1fd724bea361f813'
'60958f84b7c15a37a5157953e8b409821993ad228af454d55d9a989f92a8aa44'
'861a55ef7aeb3b49e09d7d4d679032fbbd5f3e95ad4def9cef4ea63123bc2b13'
'43988542d23f1fda4c0a33cab4713fbe55466a795771a4a457f4f933668734a9')
package() {
install -Dm 755 256colortest "$pkgdir"/usr/bin/256colortest
install -Dm 755 colorfade "$pkgdir"/usr/bin/colorfade
install -Dm 755 colorhash "$pkgdir"/usr/bin/colorhash
install -Dm 755 colorhex "$pkgdir"/usr/bin/colorhex
install -Dm 755 colorline "$pkgdir"/usr/bin/colorline
install -Dm 755 colorpanes "$pkgdir"/usr/bin/colorpanes
install -Dm 755 colortest "$pkgdir"/usr/bin/colortest
install -Dm 755 diamonds "$pkgdir"/usr/bin/diamonds
install -Dm 755 dna "$pkgdir"/usr/bin/dna
install -Dm 755 ghosts "$pkgdir"/usr/bin/ghosts
install -Dm 755 pipes "$pkgdir"/usr/bin/pipes
install -Dm 755 pmabove "$pkgdir"/usr/bin/pmabove
install -Dm 755 pmleft "$pkgdir"/usr/bin/pmleft
install -Dm 755 spaceinvaders "$pkgdir"/usr/bin/spaceinvaders
install -Dm 755 unowns "$pkgdir"/usr/bin/unowns
}

View File

@ -0,0 +1,70 @@
_urxvtver='9.22'
_urxvt="rxvt-unicode-${_urxvtver}"
pkgname=tari-urxvt
pkgver=0.1.0
pkgrel=1
pkgdesc="The popular terminal emulator with image support through w3m."
arch=('any')
provides=('rxvt-unicode')
conflicts=('rxvt-unicode')
depends=('libxft' 'perl' 'startup-notification' 'rxvt-unicode-terminfo' 'w3m')
source=('urxvtc.desktop' 'font-width-fix.patch' 'line-spacing-fix.patch'
'sgr-mouse-mode.patch' 'fix-smart-resize-with-x11-frame-borders.patch'
"http://dist.schmorp.de/rxvt-unicode/${_urxvt}.tar.bz2")
sha256sums=('9c1964776a1f7fe0ccfff937355e7dedca812c328e38970598bf2f62633ee121'
'4aa9d068e80413da25cef227f6246c41d42e3e4fe6507afd0f61ca4f690a674a'
'adba89fdbf6a84564d54f22eed0f62c05470d76c29f1e811dd3d34f380646fdd'
'aa87121fc41e80c5c56740b1bc98e965920463e04aae5c0b2b6717d38162479f'
'927299576f5c9eae8820ba5de8b452f00c4a241f5dda32b6c60fd2d5c98da0b1'
'e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd')
prepare() {
cd "${_urxvt}"
patch -p0 -i ../font-width-fix.patch
patch -p0 -i ../line-spacing-fix.patch
patch -p0 -i ../sgr-mouse-mode.patch
patch -p1 -i ../fix-smart-resize-with-x11-frame-borders.patch
}
build() {
cd "${_urxvt}"
./configure \
--prefix=/usr \
--enable-256-color \
--enable-combining \
--enable-fading \
--enable-font-styles \
--enable-iso14755 \
--enable-keepscrolling \
--enable-lastlog \
--enable-mousewheel \
--enable-next-scroll \
--enable-perl \
--enable-pointer-blank \
--enable-rxvt-scroll \
--enable-selectionscrolling \
--enable-slipwheeling \
--enable-smart-resize \
--enable-startup-notification \
--enable-transparency \
--enable-unicode3 \
--enable-utmp \
--enable-wtmp \
--enable-xft \
--enable-xim \
--enable-xterm-scroll
make
}
package() {
install -Dm 644 urxvtc.desktop "$pkgdir"/usr/share/applications/urxvtc.desktop
cd "${_urxvt}"
export TERMINFO="$srcdir/terminfo"
install -d "$TERMINFO"
make DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,36 @@
_yayver='8.1173.0'
_rofipassver='2.0.1'
_yay="yay_${_yayver}_x86_64"
_rofipass="rofi-pass-${_rofipassver}"
pkgname=tari-util
pkgver=0.1.0
pkgrel=1
pkgdesc="Misc utility packages."
arch=('any')
provides=('launch-cmd' 'yay' 'rofi-pass')
conflicts=('launch-cmd' 'yay' 'rofi-pass')
depends=('xdg-utils' 'rofi' 'pass' 'pwgen' 'xdotool')
source=('launch.c'
"https://github.com/Jguer/yay/releases/download/v${_yayver}/${_yay}.tar.gz"
"${_rofipass}.tar.gz::https://codeload.github.com/carnager/rofi-pass/tar.gz/${_rofipassver}")
sha256sums=('0c049434a4a7934a82fb122acfb92159eba665db81cab8af92da2f227f3274bd'
'e0f28c6be3c4322901438f324aed1f49ab593a8d4ed92279b1dda51381c51d6b'
'82256730aa4ab6f0b3082eaa8410a93c284ca9fc1e0151de92d9dd703d850439')
build() {
make launch
}
package() {
_yayout="${srcdir}/${_yay}"
install -Dm 755 launch "$pkgdir"/usr/bin/launch
install -Dm 755 "$_yayout"/yay "$pkgdir"/usr/bin/yay
install -Dm 644 "$_yayout"/yay.8 "$pkgdir"/usr/share/man/man8/yay.8
install -Dm 644 "$_yayout"/bash "$pkgdir"/usr/share/bash-completion/completions/yay
install -Dm 644 "$_yayout"/zsh "$pkgdir"/usr/share/zsh/site-functions/_yay
install -Dm 644 "$_yayout"/fish "$pkgdir"/usr/share/fish/vendor_completions.d/yay.fish
make -C "$_rofipass" DESTDIR="$pkgdir" PREFIX="/usr" install
}

View File

@ -0,0 +1,47 @@
_ubo='ublock_origin-1.17.2-an+fx.xpi'
_vimium='vimium_ff-1.64-an+fx.xpi'
_noscript='noscript_security_suite-10.1.9.9-an+fx.xpi'
_https='https_everywhere-2018.9.19-an+fx.xpi'
_arcdark='arc_dark_theme-2018.9.24-fx.xpi'
pkgname=tari-web
pkgver=0.1.0
pkgrel=1
pkgdesc="Web browser settings."
arch=('any')
depends=(ttf-dejavu ttf-liberation noto-fonts noto-fonts-cjk
noto-fonts-emoji adapta-gtk-theme firefox chromium)
source=('local-settings.js' 'mozilla.cfg'
"https://addons.cdn.mozilla.net/user-media/addons/607454/${_ubo}"
"https://addons.cdn.mozilla.net/user-media/addons/808538/${_vimium}"
"https://addons.cdn.mozilla.net/user-media/addons/722/${_noscript}"
"https://addons.cdn.mozilla.net/user-media/addons/229918/${_https}"
"https://addons.cdn.mozilla.net/user-media/addons/993966/${_arcdark}")
noextract=("${_ubo}" "${_vimium}" "${_noscript}" "${_https}" "${_arcdark}")
sha256sums=('4588ae786cf0cdf941a0c79ad71b7592cd1f5478a85822b019d98ff0d5e631d4'
'c625a3b98b3769bf08fe0a357898245dd2688f3d5c22c7a42ad4fc26132f45a9'
'b5e2fb5f12ef64d9ff4b8723af5f8d16ee349c5b9f2683edafc440f587efd078'
'1ac884ffd3345d83c5c47be1d6a6abe34b35678b6469ee68c7be6070100f5f98'
'e7ec0345c2174e64c7552ab708a59c8efd7c1078fedda64d9c9ad06a899194b9'
'90604ab36bd205d2cdee6a97d1e243b8193b678bd02731cc75209ce0c56590e4'
'95ab0e6116daa257a7023f134f14949d75271ef02428f69819d063da46f4ab8f')
package() {
install -Dm 644 local-settings.js "$pkgdir"/usr/lib/firefox/defaults/pref/local-settings.js
install -Dm 644 mozilla.cfg "$pkgdir"/usr/lib/firefox/mozilla.cfg
install -Dm 644 $_ubo \
"$pkgdir"/usr/lib/firefox/browser/extensions/uBlock0@raymondhill.net.xpi
install -Dm 644 $_vimium \
"$pkgdir"/usr/lib/firefox/browser/extensions/{d7742d87-e61d-4b78-b8a1-b469842139fa}.xpi
install -Dm 644 $_noscript \
"$pkgdir"/usr/lib/firefox/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
install -Dm 644 $_https \
"$pkgdir"/usr/lib/firefox/browser/extensions/https-everywhere@eff.org.xpi
install -Dm 644 $_arcdark \
"$pkgdir"/usr/lib/firefox/browser/extensions/arc-dark-theme@afnankhan.xpi
}