Skip to content

Instantly share code, notes, and snippets.

View fislysandi's full-sized avatar

fislysandi

  • HELL
View GitHub Profile
@fislysandi
fislysandi / rpmtoarch
Created September 1, 2022 14:25 — forked from zinovyev/rpmtoarch
Convert rpm package to Archlinux package (makepkg -s command required afterwards)
#!/usr/bin/env ruby
require "fileutils"
class Package
FILTERED_PARTS = %w[rpm x86_64]
INSTALL_SECTIONS = %w[pre_install post_install pre_upgrade
post_upgrade pre_remove post_remove].freeze