summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/angband-libre/PKGBUILD56
-rw-r--r--libre/angband-libre/sound.patch154
-rw-r--r--libre/epiphany-libre/PKGBUILD56
-rw-r--r--libre/epiphany-libre/epiphany.install13
4 files changed, 279 insertions, 0 deletions
diff --git a/libre/angband-libre/PKGBUILD b/libre/angband-libre/PKGBUILD
new file mode 100644
index 000000000..21bde2beb
--- /dev/null
+++ b/libre/angband-libre/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Israfel <israfel@lavabit.com>
+# Original Maintainer: schuay <jakob.gruber@gmail.com>
+# Original Maintainer: Mike Sampson <mike at sambodata dot com>
+# Contributor: Adrian Stratulat <adrian.stratulat at inboxcom>
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: KillaB <xGenoBlast@gmail.com>
+# Contributor: Callan Barrett <wizzomafizzo@gmail.com>
+# Contributor: Christian Schmidt <xmucknertx@googlemail.com>
+# Contributor: Sebastian Sareyko <public@nooms.de>
+
+_pkgname=angband
+pkgname=angband-libre
+pkgver=3.4.1
+pkgrel=1
+pkgdesc="A roguelike dungeon exploration game based on the writings of JRR Tolkien, without nonfree sound effects"
+arch=('i686' 'x86_64')
+url="http://rephial.org/"
+license=('GPL2' 'custom')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'ncurses' 'libglade')
+source=("http://rephial.org/downloads/${pkgver:0:3}/angband-v${pkgver}.tar.gz" "sound.patch")
+
+build() {
+
+ cd "${srcdir}/angband-v${pkgver}"
+
+ patch -Np1 -i ../sound.patch
+
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/usr/share/angband \
+ --with-configpath=/usr/share/angband \
+ --with-libpath=/usr/share/angband \
+ --enable-gtk \
+ --enable-sdl \
+ --enable-sdl-mixer
+
+ make
+
+}
+
+package() {
+
+ cd "${srcdir}/angband-v${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ rm -f "${pkgdir}/usr/share/angband/*/delete.me"
+ install -Dm644 copying.txt "${pkgdir}/usr/share/licenses/angband/COPYING"
+
+}
+sha512sums=('76099c8fa999e88ea1324bb70b4dee5df1faccd1fa256cc0c460ce2c5ddae9634fdef876bd0d826e99e6dcc54a9f9cf619d82552dc658d0115b97e0e644c19d3'
+ 'fb3795f7ef5a266e36ef51c9275e65613eeba04fc4283646f21e77ca571b1562c1ad9a11782fe8f1052cefc48b0f3fa1f162bfff88fe8cf62c39e142878d3251')
diff --git a/libre/angband-libre/sound.patch b/libre/angband-libre/sound.patch
new file mode 100644
index 000000000..e70373b72
--- /dev/null
+++ b/libre/angband-libre/sound.patch
@@ -0,0 +1,154 @@
+# Removes nonfree sounds
+# Made by Israfel <israfel@lavabit.com>
+diff -Nur angband-v3.4.1/copying.txt angband-v3.4.1-libre/copying.txt
+--- angband-v3.4.1/copying.txt 2012-10-19 15:47:23.000000000 -0400
++++ angband-v3.4.1-libre/copying.txt 2013-06-29 20:07:03.250510548 -0400
+@@ -27,8 +27,6 @@
+ of this file. Currently some of the tiles in the 64x64.png tilesheet were
+ resized from tiles made by David Gervais for the 32x32 set.
+
+- * the sounds are freeware, whatever that means.
+-
+ * The font files are all by Leon Marrick and/or Sheldon Simms III and/or Nick
+ McConnell, all of whom have agreed to their Angband work being released
+ under the GPL.
+Binary files angband-v3.4.1/lib/xtra/sound/breath.wav and angband-v3.4.1-libre/lib/xtra/sound/breath.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/clunk.wav and angband-v3.4.1-libre/lib/xtra/sound/clunk.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/death.wav and angband-v3.4.1-libre/lib/xtra/sound/death.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/destroy.wav and angband-v3.4.1-libre/lib/xtra/sound/destroy.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/drop.wav and angband-v3.4.1-libre/lib/xtra/sound/drop.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/eat.wav and angband-v3.4.1-libre/lib/xtra/sound/eat.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/flee.wav and angband-v3.4.1-libre/lib/xtra/sound/flee.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/hallu.wav and angband-v3.4.1-libre/lib/xtra/sound/hallu.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/hit1.wav and angband-v3.4.1-libre/lib/xtra/sound/hit1.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/hit.wav and angband-v3.4.1-libre/lib/xtra/sound/hit.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/kill1.wav and angband-v3.4.1-libre/lib/xtra/sound/kill1.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/kill.wav and angband-v3.4.1-libre/lib/xtra/sound/kill.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/level.wav and angband-v3.4.1-libre/lib/xtra/sound/level.wav differ
+diff -Nur angband-v3.4.1/lib/xtra/sound/Makefile angband-v3.4.1-libre/lib/xtra/sound/Makefile
+--- angband-v3.4.1/lib/xtra/sound/Makefile 2012-10-19 15:47:23.000000000 -0400
++++ angband-v3.4.1-libre/lib/xtra/sound/Makefile 2013-06-29 20:05:33.734131933 -0400
+@@ -1,9 +1,6 @@
+ MKPATH=../../../mk/
+ include $(MKPATH)buildsys.mk
+
+-DATA = sound.cfg breath.wav clunk.wav death.wav destroy.wav drop.wav eat.wav \
+- flee.wav hallu.wav hit.wav hit1.wav kill.wav kill1.wav level.wav \
+- miss.wav miss1.wav money.wav opendoor.wav shutdoor.wav thump.wav \
+- vomit.wav
++DATA = sound.cfg
+ PACKAGE = xtra/sound
+
+Binary files angband-v3.4.1/lib/xtra/sound/miss1.wav and angband-v3.4.1-libre/lib/xtra/sound/miss1.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/miss.wav and angband-v3.4.1-libre/lib/xtra/sound/miss.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/money.wav and angband-v3.4.1-libre/lib/xtra/sound/money.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/opendoor.wav and angband-v3.4.1-libre/lib/xtra/sound/opendoor.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/shutdoor.wav and angband-v3.4.1-libre/lib/xtra/sound/shutdoor.wav differ
+diff -Nur angband-v3.4.1/lib/xtra/sound/sound.cfg angband-v3.4.1-libre/lib/xtra/sound/sound.cfg
+--- angband-v3.4.1/lib/xtra/sound/sound.cfg 2012-10-19 15:47:23.000000000 -0400
++++ angband-v3.4.1-libre/lib/xtra/sound/sound.cfg 2013-06-29 20:06:41.344730009 -0400
+@@ -41,19 +41,19 @@
+ #
+
+ # The shopkeep bought a worthless item.
+-store1 = money.wav
++store1 =
+
+ # The shopkeep paid too much for an item.
+-store2 = money.wav
++store2 =
+
+ # The shopkeep got away with a good bargain.
+-store3 = money.wav
++store3 =
+
+ # The shopkeep got away with a great bargain.
+-store4 = money.wav
++store4 =
+
+ # You make a normal transaction (buying or selling).
+-store5 = money.wav
++store5 =
+
+ # You enter a store.
+ store_enter =
+@@ -69,7 +69,7 @@
+ #
+
+ # You succeed in a melee attack against a monster.
+-hit = hit.wav drop.wav hit1.wav
++hit =
+
+ # It was a good hit!
+ hit_good =
+@@ -87,7 +87,7 @@
+ hit_hi_superb =
+
+ # You miss a melee attack against a monster.
+-miss = miss.wav miss1.wav
++miss =
+
+ # You fire a missile.
+ shoot =
+@@ -99,7 +99,7 @@
+ hitpoint_warn =
+
+ # You die.
+-death = death.wav
++death =
+
+ #
+ # Player sounds - status changes
+@@ -200,10 +200,10 @@
+ money3 =
+
+ # You (or a monster) drop something on the ground.
+-drop = clunk.wav
++drop =
+
+ # You gain (or regain) a level.
+-level = level.wav
++level =
+
+ # You successfully study a spell or prayer.
+ study =
+@@ -227,19 +227,19 @@
+ hitwall =
+
+ # You eat something.
+-eat = eat.wav
++eat =
+
+ # You successfully dig through something.
+-dig = thump.wav
++dig =
+
+ # You open a door.
+-opendoor = opendoor.wav
++opendoor =
+
+ # You shut a door.
+-shutdoor = shutdoor.wav
++shutdoor =
+
+ # You teleport from a level (including via recall).
+-tplevel = teleport.wav
++tplevel =
+
+ # Default "bell" sound for system messages.
+ bell =
+@@ -294,10 +294,10 @@
+ #
+
+ # A monster flees in terror.
+-flee = flee.wav
++flee =
+
+ # A monster is killed.
+-kill = kill.wav destroy.wav kill1.wav
++kill =
+
+ # A unique is killed.
+ kill_unique =
+Binary files angband-v3.4.1/lib/xtra/sound/thump.wav and angband-v3.4.1-libre/lib/xtra/sound/thump.wav differ
+Binary files angband-v3.4.1/lib/xtra/sound/vomit.wav and angband-v3.4.1-libre/lib/xtra/sound/vomit.wav differ
diff --git a/libre/epiphany-libre/PKGBUILD b/libre/epiphany-libre/PKGBUILD
new file mode 100644
index 000000000..d6a1c77b2
--- /dev/null
+++ b/libre/epiphany-libre/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 186904 2013-05-31 18:08:27Z heftig $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+# Contributor (Parabola): Márcio Silva <coadde@lavabit.com>
+
+_pkgname=epiphany
+pkgname=epiphany-libre
+pkgver=3.8.2
+pkgrel=1
+install=epiphany.install
+pkgdesc="A GNOME web browser based on the WebKit rendering engine, with DuckDuckGo HTML support"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+depends=('libsoup' 'libnotify' 'gsettings-desktop-schemas' 'webkitgtk3' 'nss' 'iso-codes' 'dconf' 'desktop-file-utils'
+ 'hicolor-icon-theme' 'gcr' 'gnome-desktop' 'libwnck3')
+makedepends=('intltool' 'gnome-doc-utils' 'startup-notification' 'gobject-introspection')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+options=('!libtool' '!emptydirs')
+groups=('gnome')
+url="http://www.gnome.org/projects/epiphany/"
+source=(http://ftp.gnome.org/pub/GNOME/sources/$_pkgname/${pkgver:0:3}/$_pkgname-$pkgver.tar.xz)
+sha256sums=('ae89d6902ed243304d2cbf2fa361f6dd0cb3401fdaf726e6fdd4acc09197d50a')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ # Replace Google support to DuckDuckGo HTML
+ sed -i 's|http://www[.]google[.]com/search?q=search[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=search|g' $(grep -rlI 'http://www[.]google[.]com/search?q=search&ie=UTF-8&oe=UTF-8')
+ sed -i 's|http://www[.]google[.]com/search?q=lala%2Elala[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=lala.lala|g' $(grep -rlI 'http://www[.]google[.]com/search?q=lala%2Elala&ie=UTF-8&oe=UTF-8')
+ sed -i 's|http://www[.]google[.]com/search?q=totalgarbage0xdeadbeef[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=totalgarbage0xdeadbeef|g' $(grep -rlI 'http://www[.]google[.]com/search?q=totalgarbage0xdeadbeef&ie=UTF-8&oe=UTF-8')
+ sed -i 's|http://www[.]google[.]com/search?q=search+separated+words+please[&]ie=UTF-8[&]oe=UTF-8|https://duckduckgo.com/html/?q=search+separated+words+please|g' $(grep -rlI 'http://www[.]google[.]com/search?q=search+separated+words+please&ie=UTF-8&oe=UTF-8')
+ sed -i '\|a quoted string should be searched|d' $(grep -rlI 'a quoted string should be searched')
+ sed -i 's|http://www[.]google[.]com/search?q=%s[&]amp;ie=UTF-8[&]amp;oe=UTF-8|https://duckduckgo.com/html/?q=%s|g' $(grep -rlI 'http://www[.]google[.]com/search')
+ sed -i 's|http://www[.]google[.]com|https://duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+ sed -i 's|http://google[.]com|https://duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+ sed -i 's|mail[.]google[.]com|mail.com|g' $(grep -rlI 'mail[.]google[.]com')
+ sed -i 's|google[.]com|duckduckgo.com/html|g' $(grep -rlI 'google[.]com')
+}
+
+build() {
+ cd $_pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
diff --git a/libre/epiphany-libre/epiphany.install b/libre/epiphany-libre/epiphany.install
new file mode 100644
index 000000000..8b17fa3d4
--- /dev/null
+++ b/libre/epiphany-libre/epiphany.install
@@ -0,0 +1,13 @@
+post_install() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}